Menu

#4 A parser should be an object

open
nobody
5
2009-07-30
2009-07-30
No

JS/CC should generate an object from the grammar.
- this would avoid namespace pollution
- this would make the ##PREFIX## trick useless.

As a workaround we can currently manually wrap the generated code with an object. See http://registry-files-tools.googlecode.com/svn-history/r3/trunk/msreg.par

Discussion

  • Olivier Mengué

    Olivier Mengué - 2009-07-30

    I'm using JS/CC 0.30.

     
  • Olivier Mengué

    Olivier Mengué - 2009-07-30
    • labels: --> Code Generator
    • summary: A parser must be an object --> A parser should be an object
     

Log in to post a comment.