PyHP-pph / PyHP_pph

This repository serves as a centre for collaboration on the PyHP++# language. It will also include a functioning interpreter and compiler for PyHP++# once the standard is finalised.
https://www.reddit.com/r/PyHP_pph/
GNU Affero General Public License v3.0
23 stars 3 forks source link

When the spec is complete, we should create a PEG file #37

Open Kampfkarren opened 7 years ago

Kampfkarren commented 7 years ago

A lot of languages have a library that reads PEG (parser expression grammar) formatted code.

When the spec is complete, it would be worthwhile to create one for PyHP++# to speed up development of CICs.

Kampfkarren commented 7 years ago

http://www.brynosaurus.com/pub/lang/peg.pdf

This seems to be a good resource on PEG, although long.

Kampfkarren commented 7 years ago

It seems a lot of PEG libraries for the major programming languages have slightly different structures.

Kampfkarren commented 7 years ago

One thing that makes writing a good PEG hard for PyHP++# is its strict indenting rules alongside being able to use braces. This of course is perfect and should not be changed, I'm just bringing it up.