public
Created

Scripts for the Configurable HTML parser blog post

  • Download Gist
acme-block-block.sh
Shell
1 2 3 4
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
acme-block-empty.sh
Shell
1 2 3 4
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
acme-block-inline.sh
Shell
1 2 3 4
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
acme-block-mixed.sh
Shell
1 2 3 4
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
acme-block-pcdata.sh
Shell
1 2 3 4
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
acme-inline-inline.sh
Shell
1 2 3 4
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.