GraphViz2::Marpa

A Perl lexer and parser for Graphviz dot files
Download

GraphViz2::Marpa Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ron Savage
  • Publisher web site:
  • http://search.cpan.org/~rsavage/

GraphViz2::Marpa Tags


GraphViz2::Marpa Description

GraphViz2::Marpa is a Perl module that provides an Set::FA::Element-based lexer and a Marpa::XS-based parser for Graphviz (dot) graph definitions.Both the lexer and the parser must be run to parse the dot file. See "Scripts" for sample code.Demo lexer/parser output: http://savage.net.au/Perl-modules/html/graphviz2.marpa/index.html.State Transition Table: http://savage.net.au/Perl-modules/html/graphviz2.marpa/default.stt.html.Command line options and object attributes: http://savage.net.au/Perl-modules/html/graphviz2.marpa/code.attributes.html.My article on this set of modules: http://savage.net.au/Ron/html/graphviz2.marpa/Lexing.and.Parsing.with.Marpa.html.The Marpa grammar as an image: http://savage.net.au/Ron/html/graphviz2.marpa/Marpa.Grammar.svg. This image was created with Graphviz via GraphViz2.Synopsiso Display help perl scripts/lex.pl -h perl scripts/parse.pl -h perl scripts/g2m.pl -ho Run the lexer perl scripts/lex.pl -i x.dot -l x.lex x.dot is a Graphviz dot file. x.lex will be a CSV file of lexed tokens.o Run the parser without running the lexer or the default renderer perl scripts/parse.pl -l x.lex -p x.parse x.parse will be a CSV file of parsed tokens.o Run the parser and the default renderer perl scripts/parse.pl -l x.lex -p x.parse -o x.rend x.rend will be a Graphviz dot file.o Run the lexer, parser and default renderer perl scripts/g2m.pl -i x.dot -l x.lex -p x.parse -o x.rendSee also "Scripts".Product's homepage


GraphViz2::Marpa Related Software