Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
|
|
@ -0,0 +1,22 @@
|
|||
func$ strip s$ .
|
||||
i = 1
|
||||
repeat
|
||||
c$ = substr s$ i 1
|
||||
until c$ = "#" or c$ = ";" or c$ = ""
|
||||
if c$ = " " and sp = 0
|
||||
sp = i
|
||||
elif c$ <> " "
|
||||
sp = 0
|
||||
.
|
||||
i += 1
|
||||
.
|
||||
if sp = 0
|
||||
sp = i
|
||||
.
|
||||
return substr s$ 1 (sp - 1)
|
||||
.
|
||||
print strip "Regular string" & "."
|
||||
print strip "With a hash# a comment" & "."
|
||||
print strip "With a hash # a comment" & "."
|
||||
print strip "With a semicolon ; a comment" & "."
|
||||
print strip "No comment " & "."
|
||||
Loading…
Add table
Add a link
Reference in a new issue