Wez Furlong committed 4051073

add copying and readme information

  • Participants
  • Parent commits effb245

Comments (0)

Files changed (2)

+Based on lemon which is in the public domain.
+This version of the code is:
+Copyright 2006 Wez Furlong, OmniTI Computer Consulting, Inc.
+  Permission to use, copy, modify, and distribute this software and its
+  documentation for any purpose and without fee is hereby granted,
+  provided that the above copyright notice appear in all copies and that
+  both the copyright notice and this permission notice and warranty
+  disclaimer appear in supporting documentation, and that the name of
+  the authors or their employers not be used in advertising or publicity
+  pertaining to distribution of the software without specific, written
+  prior permission.
+  The authors and their employers disclaim all warranties with regard to
+  this software, including all implied warranties of merchantability and
+  fitness. In no event shall the authors or their employers be liable
+  for any special, indirect or consequential damages or any damages
+  whatsoever resulting from loss of use, data or profits, whether in an
+  action of contract, negligence or other tortious action, arising out
+  of or in connection with the use or performance of this software.
+(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.
+ 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);
+You can find out more about the lemon syntax from: