Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 872 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 872 Bytes

The Grammar

The grammar specification for Phoron is given in phoron.peg. This is the formal specification of the Phoron grammar, and is used to test, maintain, and update Phoron's grammar.

How to run and test the grammar?

The grammar is written in PEG format compatible with the peg tool (which needs to be installed locally).

To test the grammar, run the following command at the command line:

  $ chmod a+x test_grammar.sh
  $ ./test_grammar.sh

or

% sh test_grammar.sh

If everything passes, then the grammar is working as expected. You can add more test files (look at AllInOne.pho for all the features supported by Phoron, and to the specification for the full specification of Phoron.