Permalink
Browse files

Better README en Makefile

  • Loading branch information...
1 parent 07a6862 commit 0d325445a5c494a8ddb5433fc40b947bda993849 @pstuifzand committed Mar 23, 2012
Showing with 15 additions and 13 deletions.
  1. +9 −0 Makefile
  2. +6 −13 README.md
View
@@ -0,0 +1,9 @@
+all: lib/MarpaX/Parser/Marpa.pm
+
+gen_marpa.pl: marpa_parser.pl marpa+.mp
+ perl marpa_parser.pl marpa+.mp > $@
+
+lib/MarpaX/Parser/Marpa.pm: gen_marpa.pl marpa+.mp
+ mkdir -p lib/MarpaX/Parser
+ perl gen_marpa.pl marpa+.mp MarpaX::CodeGen::SimpleLex > $@
+
View
@@ -4,23 +4,16 @@ Marpa parser for parsing Marpa
Synopsys
--------
- # We first need to generate the 'official' parser
- # Which is created from the parser specification
+We first need to generate the 'official' parser
+Which is created from the parser specification
- perl marpa_parser.pl marpa+.mp > gen_marpa.pl
+ $ make
- # This version will create the parser in a package
+Which can be used with the 'marp' command
- mkdir -p lib/MarpaX/Parser
+perl bin/marp [filename] [code_generator] [package...]
- perl gen_marpa.pl marpa+.mp MarpaX::CodeGen::SimpleLex > lib/MarpaX/Parser/Marpa.pm
-
-
- # Which can be used with the 'marp' command
-
- perl bin/marp [filename] [code_generator] [package...]
-
- perl bin/marp examples/htmlgen/htmlgen.mp MarpaX::CodeGen::SimpleLex MarpaX::Parser::HTMLGen > lib/MarpaX/Parser/HTMLGen.pm
+ $ perl bin/marp examples/htmlgen/htmlgen.mp MarpaX::CodeGen::SimpleLex MarpaX::Parser::HTMLGen > lib/MarpaX/Parser/HTMLGen.pm
Description
-----------

0 comments on commit 0d32544

Please sign in to comment.