examples/deterministic.ace in antelope-0.3.2 vs examples/deterministic.ace in antelope-0.4.0

- old
+ new

@@ -1,35 +1,35 @@ -%require "~> 0.1" -%generator "ruby" - -%define api.push-pull pull -%define panic-mode true -%token <lex> NUMBER -%token <lex> SEMICOLON ";" -%token <lex> ADD "+" -%token <lex> LPAREN "(" -%token <lex> RPAREN ")" - -%type <node> s e t - -%null.data api.prefix "antelope_" -%union { - struct slip_parser_node* node; - struct slip_lex_token* lex; - struct slip_parser_list* list; -} - -%% - -s: e -e: t[a] SEMICOLON[b] { $$ = $1 } - | t[a] ADD[b] e[c] { $$ = $1 + $2 } - | error[a] - -t: NUMBER - | LPAREN e RPAREN { $$ = $2 } - -%% - -class DeterministicParser < Antelope::Parser - %{write} -end +%require "~> 0.1" +%generator "ruby" + +%define api.push-pull pull +%define panic-mode true +%token <lex> NUMBER +%token <lex> SEMICOLON ";" +%token <lex> ADD "+" +%token <lex> LPAREN "(" +%token <lex> RPAREN ")" + +%type <node> s e t + +%null.data api.prefix "antelope_" +%union { + struct slip_parser_node* node; + struct slip_lex_token* lex; + struct slip_parser_list* list; +} + +%% + +s: e +e: t[a] SEMICOLON[b] { $$ = $1 } + | t[a] ADD[b] e[c] { $$ = $1 + $2 } + | error[a] + +t: NUMBER + | LPAREN e RPAREN { $$ = $2 } + +%% + +class DeterministicParser < Antelope::Parser + %{write} +end