I’m trying to do my homework and hacking through some example code I saw this line:
[(:+ (:or VAR)) (token-VAR (string->symbol lexeme))]
This is from a lexical analyzer in a calculator;
Now I’m not really sure what either of this does, and I’m not particularly sure what this means exactly, but I’m pretty sure it has what I need to finish my homework. Searching hasn’t gotten me any help so all help is great at this time. Thanks!
The sample code probably imported
parser-toolsusing the:prefix (which is the recommended prefix in the parser-tools documentation. If that’s the case, then:+means “repetition one or more times” and:ormatches any of the subpatterns (justVARin this case).