Author: thebeing
Date: Sat Apr 28 00:48:44 2012
New Revision: 7695
URL: http://svn.gna.org/viewcvs/etoile?rev=7695&view=rev
Log:
Add support for easy tokenization by a delegate. ParserKit will now
automatically call -matched<RuleName>At: on the delegate if it implements it.
Also, for all semantic actions in the grammar, it will prefer to call versions
that have an additional range: argument at the end. E.g. for the rule
Number <- [0-9]:d -> [makeNumber: d]
the parser will do the following:
* invoke -matchedNumberAt: if the delegate implements it
* invoke -makeNumber:range: if the delegate implements it, otherwise use
-makeNumber:
Modified:
trunk/Etoile/Languages/ParserKit/ParserKit.st
_______________________________________________
Etoile-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-cvs