Differences from v3

Skip to end of sidebar
Go to start of sidebar
Skip to end of metadata
Go to start of metadata

Lexers

  • no nongreedy '//' .* '\n'
  • added modes

grammars

no global scopes, but rules can see all vals from invoking rules

Labels:
  1. Sep 20, 2011

    You said "no global scopes, but rules can see all vals from invoking rules". Does that mean that I would use the top level rule scope for the effect of a global rule?

    Then how would I unit test individual rules that make use of that scope? I need some way to set the environment to the state that I want to test.

    Also, I use global scopes when the lookahead is checking semantic predicate hoisting to get myself out of really sticky situations (don't try this at home, kids!).

    If I am misunderstanding what "no global scopes" means, please point me to the discussion, so I can get my act together, here.