Skip to content

Instantly share code, notes, and snippets.

@jmaicher
Created June 27, 2012 15:25
Show Gist options
  • Save jmaicher/3004826 to your computer and use it in GitHub Desktop.
Save jmaicher/3004826 to your computer and use it in GitHub Desktop.
eli> Test.fw : absyntax >
RULE rule_1: G1 ::= '-' END;
RULE rule_2: G2 ::= ':' END;
RULE rule_3: G2 ::= G2 Ident END;
RULE rule_4: G2 ::= Ident END;
RULE rule_5: Test ::= foo bar END;
RULE rule_6: bar ::= G1 END;
RULE rule_7: foo ::= G2 END;
@=~
~p maximum_input_line_length = infinity
~O~<Test.gla~>~{
Ident: C_IDENTIFIER
~}
~O~<Test.con~>~{
Test: foo bar.
bar: '-'+.
foo: (Ident / ':')+.
~}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment