lgrozinger / rdfscript

1 stars 0 forks source link

Multi-line strings #5

Open lgrozinger opened 6 years ago

lgrozinger commented 6 years ago

It is not currently possible to parse multi-line strings using parser.py.

In 1.0, multi-line strings are delimited with '{' and '}'. Although multi-line strings should be supported in future versions, I prefer the pythonic syntax, using either \ string continuation or the triple quotes.

e.g.

string = "This is a "\ 
"multi-line string"

or ...

string = """This is a 
multi-line string"""
lgrozinger commented 5 years ago

This should be a fairly simple change to the lex regexp for strings, at least to implement the backslash version.