Skip to content

Commit

Permalink
Change grammar to use new ! syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Aug 25, 2011
1 parent d65488a commit 105fe74
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,7 +1,7 @@
export PERL5LIB=../pegex-pm/lib

COMPILE_COMMAND = perl -MPegex::Compiler::Bootstrap -e \
'my $$p=Pegex::Compiler::Bootstrap->new;$$p->compile_file(shift);print $$p->to_
'print Pegex::Compiler::Bootstrap->compile_file(shift)->to_

all: testml.pgx.yaml testml.pgx.json

Expand Down
2 changes: 1 addition & 1 deletion testml.pgx
Expand Up @@ -42,7 +42,7 @@ code_expression:
<unit_call>*

unit_call:
<!assertion_call_test>
!<assertion_call_test>
<call_indicator>
<code_object>

Expand Down
3 changes: 2 additions & 1 deletion testml.pgx.json
Expand Up @@ -469,7 +469,8 @@
"unit_call" : {
"+all" : [
{
"+not" : "assertion_call_test"
"+rule" : "assertion_call_test",
"<" : "!"
},
{
"+rule" : "call_indicator"
Expand Down
3 changes: 2 additions & 1 deletion testml.pgx.yaml
Expand Up @@ -207,7 +207,8 @@ transform_object:
<: '?'
unit_call:
+all:
- +not: assertion_call_test
- +rule: assertion_call_test
<: '!'
- +rule: call_indicator
- +rule: code_object
unquoted_string:
Expand Down

0 comments on commit 105fe74

Please sign in to comment.