Skip to content

infoil/PetitParser

Repository files navigation

PetitParser

Original project of Lukas Renggli https://www.lukas-renggli.ch ported to Dolphin Smalltalk.

Petit Parser for Dolphin Smalltalk

PetitParser is a parsing framework different to many other popular parser generators. For example,it is not table based such as SmaCC or ANTLR. Instead it uses a unique combination of four alternative parser methodologies: scannerless parsers, parser combinators, parsing expression grammars and packrat parsers. As such PetitParser is more powerful in what it can parse and it arguably fits better the dynamic nature of Smalltalk. Let’s have a quick look at these four parser

All tests ran against Dolphin 7.1.15

https://github.com/dolphinsmalltalk/Dolphin.

Clone the repository

Installation PetitParser Core only

  • In directory of clone locate and file in \PetitParser-Core\PetitParser-Core.pax

Install PetitParser core with test of core

  • In directory of clone locate and file in \PetitTests-Tests\PetitCoreTests-Test.pax .

Aditional modules:

PetitSqL

  • In directory of clone locate and file in \PetitSQL-Tests\PetitSQL-Tests.pax

PetitJson

  • In directory of clone locate and file in \PetitJson-Tests\PetitJson-Tests.pax

refs:

https://www.lukas-renggli.ch/blog/petitparser-1

http://pharobooks.gforge.inria.fr/PharoByExampleTwo-Eng/latest/PetitParser.pdf

https://github.com/dolphinsmalltalk/Dolphin

License

The MIT license

About

Petit Parser for Dolphin Smalltalk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published