Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
strip = function(test)
|
||||
comment = test.indexOf("#")
|
||||
if comment == null then comment = test.indexOf(";")
|
||||
if comment then test = test[:comment]
|
||||
while test[-1] == " "
|
||||
test = test - " "
|
||||
end while
|
||||
return test
|
||||
end function
|
||||
|
||||
print strip("This is a hash test # a comment") + "."
|
||||
print strip("This is a semicolon test ; a comment") + "."
|
||||
print strip("This is a no comment test ") + "."
|
||||
Loading…
Add table
Add a link
Reference in a new issue