GitXplorerGitXplorer
w

lemon-php

public
73 stars
15 forks
0 issues

Commits

List of commits on branch master.
Unverified
05ec475222d9e3dcd1482601ee7abb793174f816

Fixed some bugs.

iinvalid-email-address committed 13 years ago
Unverified
715b4b02c65e712ba1a4a0f811edaa9768629b2b

remove dist script, remove stale email address

wwez committed 14 years ago
Unverified
ac7eb59be51281a47f77ad03b30e226eb2319eac

script for packaging

wwez committed 18 years ago
Unverified
ca7acd7b042086cc03328c32b508c8e4f71e181a

add copying and readme information

wwez committed 18 years ago
Unverified
34ca6a999dd3ef58b03b42e305f17423f69345d1

add objc.y

wwez committed 18 years ago
Unverified
65904678de666d7fd4893ebb663f6c1e113dafd5

tidy up grammar, add error resolution states

wwez committed 18 years ago

README

The README file for this repository.

(for licensing and copyright information, see COPYING)

This is an adaptation of lemon that optionally emits PHP code to implement a parser for the grammar described in a .y file.

Usage:

cc -o lemon lemon.c lemon -lPHP my.y

This will output my.php, which contains a PHP class that implements your parser. Usage is along the lines of:

$P = new ParseParser(); $S = new Yylex(); // you can get one of these using the JLexPHP package

while ($t = $S->yylex()) { $P->Parse($t->type, $t); } $P->Parse(0);

You can find out more about the lemon syntax from: http://www.hwaci.com/sw/lemon/lemon.html

Enjoy!

--Wez.