Author: theraven
Date: Sat Jan 16 15:49:43 2010
New Revision: 5830

URL: http://svn.gna.org/viewcvs/etoile?rev=5830&view=rev
Log:
Parser now parses the entire OMeta grammar.  No AST generation yet.

On a 2.16 GHz C2D, in a VM, it takes approximately 0.6-0.7 seconds of CPU time 
for the parser to run over the OMeta grammar.  There is lots of potential for 
optimisation over the current implementation (it generates hundreds of 
identical immutable objects, for example), and most of these can be done 
automatically.  

For example, every rule that doesn't take any arguments can be memoised 
trivially, so the expressions are created once in -init, then assigned to 
instance variables and then just returned from the rule methods.  


Modified:
    branches/guenther/ObjMeta/OMTest.tool/Resources/OMTest.st


_______________________________________________
Etoile-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-cvs

Reply via email to