Skip to content

Instantly share code, notes, and snippets.

@tristan
Created September 30, 2010 12:57
Show Gist options
  • Save tristan/604529 to your computer and use it in GitHub Desktop.
Save tristan/604529 to your computer and use it in GitHub Desktop.
--- ASTParser.stg 2010-09-30 14:38:18.191624873 +0200
+++ ASTParser.stg 2009-09-23 20:36:10.000000000 +0200
@@ -84,7 +84,7 @@
matchSetRuleRoot(s,label,hetero,elementIndex,debug) ::= <<
<if(label)>
-<label>=this.input.LT(1);//blah!<\n>
+<label>=input.LT(1);<\n>
<endif>
<super.matchSet(..., postmatchCode={<if(backtracking)>if ( <actions.(actionScope).synpredgate> ) <endif>root_0 = this.adaptor.becomeRoot(<createNodeFromToken(...)>, root_0);})>
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment