PHPackages                             tmilos/gold-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. tmilos/gold-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

tmilos/gold-parser
==================

Golder parser PHP runtime LALR engine and compiled grammar loader

1.0.2(9y ago)220MITPHPPHP &gt;=5.6.1

Since Dec 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tmilos/gold-parser)[ Packagist](https://packagist.org/packages/tmilos/gold-parser)[ RSS](/packages/tmilos-gold-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Gold Parser
===========

[](#gold-parser)

Gold parser PHP runtime LALR engine and compiled grammar loader. For more information check [Gold Parser website](http://www.goldparser.org/). Library is written based on the [Calitha C# GOLD Parser Engine](http://www.calitha.com/goldparser.html).

[![Author](https://camo.githubusercontent.com/c66133f19d9fe3288aee0e4be5c2e4b63190edb4d032c77a58d62f29b4ca0c66/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40746d696c6f732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/tmilos77)[![Build Status](https://camo.githubusercontent.com/964260e5fcc2c91768bad5d7065af726030690bd1a075a123ff6b273a85fccbf/68747470733a2f2f7472617669732d63692e6f72672f746d696c6f732f676f6c642d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tmilos/gold-parser)[![Coverage Status](https://camo.githubusercontent.com/5d5c4ccf2b918adf347ceee200447cc7d171a454741d23e35addd9b89247aced/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f746d696c6f732f676f6c642d7061727365722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/tmilos/gold-parser?branch=master)[![License](https://camo.githubusercontent.com/c3100598c55f9ac64ba40e1644329da8447096c167337d53617476abbc634c4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746d696c6f732f676f6c642d7061727365722e737667)](https://packagist.org/packages/tmilos/gold-parser)

Installation
============

[](#installation)

You can use Composer to install

```
$ composer require tmilos/gold-parser
```

Usage
=====

[](#usage)

Use `Loader` class to load compiled grammar file, and it's `createNewParser()` to get the LALR parser for that grammar.

```
