Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
Something went wrong with that request. Please try again.