Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Parser generator for Marpa::XS. This contains some things I tried. For a better module take a look at MarpaX::Parser::Marpa.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 docs
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 old
Octocat-spinner-32 Makefile
Octocat-spinner-32 My_Actions.pm
Octocat-spinner-32 README.md
Octocat-spinner-32 marpa+.mp
Octocat-spinner-32 marpa.mp
Octocat-spinner-32 marpa_parser.pl
README.md

Marpa parser for parsing Marpa

Synopsys

We first need to generate the 'official' parser Which is created from the parser specification

$ make

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

Description

What is this?

This is a program that generates a Marpa::XS::Grammar and lexer from a textual specification. It uses MarpaX::Simple::Lexer.

Marpa doesn't itself contain a program that creates new parsers from textfiles. This program first creates a new Marpa parser generator from a textfile containing a description of a Marpa parser.

Is this related to Marpa?

Well, not really, only in that it uses this library. It's not an official Marpa module in any way.

What is Marpa?

Marpa is a really cool parser written in Perl by Jeffrey Kegler. See https://metacpan.org/module/Marpa::XS.

Author

Peter Stuifzand

License

GPLv3+

Something went wrong with that request. Please try again.