Skip to content

Instantly share code, notes, and snippets.

@jeffreykegler
Created October 11, 2012 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffreykegler/3870030 to your computer and use it in GitHub Desktop.
Save jeffreykegler/3870030 to your computer and use it in GitHub Desktop.
Scripts for the Configurable HTML parser blog post
cp default.cfg test.cfg
echo "ELE_acme is a FLO_block included in GRP_block" >> test.cfg
echo '<acme>-during-<span>-more inline stuff-<p>-new block-' |
marpa_r2_html_fmt --no-added-tag --compile test.cfg
cp default.cfg test.cfg
echo "ELE_acme is a FLO_empty included in GRP_block" >> test.cfg
echo '<acme>-during-<span>-more inline stuff-<p>-new block-' |
marpa_r2_html_fmt --no-added-tag --compile test.cfg
cp default.cfg test.cfg
echo "ELE_acme is a FLO_inline included in GRP_block" >> test.cfg
echo '<acme>-during-<span>-more inline stuff-<p>-new block-' |
marpa_r2_html_fmt --no-added-tag --compile test.cfg
cp default.cfg test.cfg
echo "ELE_acme is a FLO_mixed included in GRP_block" >> test.cfg
echo '<acme>-during-<span>-more inline stuff-<p>-new block-' |
marpa_r2_html_fmt --no-added-tag --compile test.cfg
cp default.cfg test.cfg
echo "ELE_acme is a FLO_pcdata included in GRP_block" >> test.cfg
echo '<acme>-during-<span>-more inline stuff-<p>-new block-' |
marpa_r2_html_fmt --no-added-tag --compile test.cfg
cp default.cfg test.cfg
echo "ELE_acme is a FLO_inline included in GRP_inline" >> test.cfg
echo '<acme>-during-<span>-more inline stuff-<p>-new block-' |
marpa_r2_html_fmt --no-added-tag --compile test.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment