The 'isMethod' support in SmaCC regular expressions isn't clear to me.
These two sources essentially say the same thing
- https://files.pharo.org/books-pdfs/booklet-Smacc/2017-10-29-Smacc.pdf
- http://www.refactoryworkers.com/SmaCC/Scanner.html
<isMethod> Copies the characters where Character>>isMethod returns true into
the current regular expression. For example, instead of using \d, we could use
<isDigit> since Character>>isDigit returns true for digits.
There isn't much to go on, so I have a few questions:
- Does this mean I can use isWhitespace, isNotWhitespace etc. ? (How do I know the names?)
- Does this mean I can use my own tokens? (like isVariable, isMultiLineComment if I define these?)
- Are there some good places for me to better understand this?
Thanks for your time