Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created September 18, 2011 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ingydotnet/1225480 to your computer and use it in GitHub Desktop.
Save ingydotnet/1225480 to your computer and use it in GitHub Desktop.
ingy@thinkingy:~$ perl -MXXX -MPegex -e 'XXX pegex("src/testml-pgx/testml.pgx")->parse("A = 1;\nB = 2;\n")'
---
testml_document:
- code_section:
- assignment_statement:
- variable_name:
1: A
- code_expression:
- code_object:
number_object:
number:
1: 1
- []
- assignment_statement:
- variable_name:
1: B
- code_expression:
- code_object:
number_object:
number:
1: 2
- []
- data_section: []
...
at -e line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment