diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..acdd20c --- /dev/null +++ b/README.markdown @@ -0,0 +1,36 @@ +PHPPEG +==== + +PEG Parser Combinator for PHP5. + +Install +---- + +Use [composer](http://getcomposer.org/) to install this library. + + $ mkdir foobar && cd foobar + $ echo '{"require": {"phppeg/phppeg": "*"}}' > composer.json + $ composer install + +And include "vendor/autoload.php" to setup auto-loading for PHPPEG in your code. + + =5.2.0" diff --git a/code/PEG.php b/src/PEG.php similarity index 100% rename from code/PEG.php rename to src/PEG.php diff --git a/code/PEG/Action.php b/src/PEG/Action.php similarity index 100% rename from code/PEG/Action.php rename to src/PEG/Action.php diff --git a/code/PEG/And.php b/src/PEG/And.php similarity index 100% rename from code/PEG/And.php rename to src/PEG/And.php diff --git a/code/PEG/Anything.php b/src/PEG/Anything.php similarity index 100% rename from code/PEG/Anything.php rename to src/PEG/Anything.php diff --git a/code/PEG/ArrayContext.php b/src/PEG/ArrayContext.php similarity index 100% rename from code/PEG/ArrayContext.php rename to src/PEG/ArrayContext.php diff --git a/code/PEG/Cache.php b/src/PEG/Cache.php similarity index 100% rename from code/PEG/Cache.php rename to src/PEG/Cache.php diff --git a/code/PEG/CallbackAction.php b/src/PEG/CallbackAction.php similarity index 100% rename from code/PEG/CallbackAction.php rename to src/PEG/CallbackAction.php diff --git a/code/PEG/Char.php b/src/PEG/Char.php similarity index 100% rename from code/PEG/Char.php rename to src/PEG/Char.php diff --git a/code/PEG/Choice.php b/src/PEG/Choice.php similarity index 100% rename from code/PEG/Choice.php rename to src/PEG/Choice.php diff --git a/code/PEG/Curry.php b/src/PEG/Curry.php similarity index 100% rename from code/PEG/Curry.php rename to src/PEG/Curry.php diff --git a/code/PEG/Delay.php b/src/PEG/Delay.php similarity index 100% rename from code/PEG/Delay.php rename to src/PEG/Delay.php diff --git a/code/PEG/EOS.php b/src/PEG/EOS.php similarity index 100% rename from code/PEG/EOS.php rename to src/PEG/EOS.php diff --git a/code/PEG/ErrorReporter.php b/src/PEG/ErrorReporter.php similarity index 100% rename from code/PEG/ErrorReporter.php rename to src/PEG/ErrorReporter.php diff --git a/code/PEG/Failure.php b/src/PEG/Failure.php similarity index 100% rename from code/PEG/Failure.php rename to src/PEG/Failure.php diff --git a/code/PEG/IContext.php b/src/PEG/IContext.php similarity index 100% rename from code/PEG/IContext.php rename to src/PEG/IContext.php diff --git a/code/PEG/IParser.php b/src/PEG/IParser.php similarity index 100% rename from code/PEG/IParser.php rename to src/PEG/IParser.php diff --git a/code/PEG/InstantParser.php b/src/PEG/InstantParser.php similarity index 100% rename from code/PEG/InstantParser.php rename to src/PEG/InstantParser.php diff --git a/code/PEG/Lookahead.php b/src/PEG/Lookahead.php similarity index 100% rename from code/PEG/Lookahead.php rename to src/PEG/Lookahead.php diff --git a/code/PEG/Many.php b/src/PEG/Many.php similarity index 100% rename from code/PEG/Many.php rename to src/PEG/Many.php diff --git a/code/PEG/Memoize.php b/src/PEG/Memoize.php similarity index 100% rename from code/PEG/Memoize.php rename to src/PEG/Memoize.php diff --git a/code/PEG/Not.php b/src/PEG/Not.php similarity index 100% rename from code/PEG/Not.php rename to src/PEG/Not.php diff --git a/code/PEG/Optional.php b/src/PEG/Optional.php similarity index 100% rename from code/PEG/Optional.php rename to src/PEG/Optional.php diff --git a/code/PEG/Ref.php b/src/PEG/Ref.php similarity index 100% rename from code/PEG/Ref.php rename to src/PEG/Ref.php diff --git a/code/PEG/Sequence.php b/src/PEG/Sequence.php similarity index 100% rename from code/PEG/Sequence.php rename to src/PEG/Sequence.php diff --git a/code/PEG/StringContext.php b/src/PEG/StringContext.php similarity index 100% rename from code/PEG/StringContext.php rename to src/PEG/StringContext.php diff --git a/code/PEG/Token.php b/src/PEG/Token.php similarity index 100% rename from code/PEG/Token.php rename to src/PEG/Token.php diff --git a/code/PEG/Util.php b/src/PEG/Util.php similarity index 100% rename from code/PEG/Util.php rename to src/PEG/Util.php