Treetop basic parsing and regular expression usage
- by ucint
I'm developing a script using the ruby Treetop library and having issues working with its syntax for regex's. First off, many regular expressions that work in other settings dont work the same in treetop.
This is my grammar: (myline.treetop)
grammar MyLine
rule line
string whitespace condition
end
rule string
[\S]*
…