...
No Format |
---|
expr:
'(' expr ')' -> whatever
'(' ID ')' expr -> somethingelse // can't match
|
In general, you should put the longest matches first.
Generating text rather than tokens
...
...
No Format |
---|
expr:
'(' expr ')' -> whatever
'(' ID ')' expr -> somethingelse // can't match
|
In general, you should put the longest matches first.
...