MarpaX-Languages-Dash
view release on metacpan or search on metacpan
html/index.html view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Index of sample files created by MarpaX::Languages::Dash</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<link rel="stylesheet" type="text/css" href="/assets/css/marpax/languages/dash/default.css">
<link rel="stylesheet" type="text/css" href="/assets/css/marpax/languages/dash/fancy.table.css">
</head>
<body>
<h1 align="center">Index of sample files created by <a href="http://metacpan.org/release/MarpaX-Languages-Dash">MarpaX::Languages::Dash</a> V 1.00.</h1>
<p>This demo was created as part of my article
<a href="http://savage.net.au/Ron/html/Conditional.preservation.of.whitespace.html">Conditional preservation of whitespace when parsing with Marpa::R2</a>.</p>
<p>More-or-less all the coding effort has gone into the problem of handling the various quoting rules (below).</p>
<p>I'm currently (2016-12-25) using <a href="http://metacpan.org/release/Marpa-R2">Marpa::R2</a> V 3.</p>
<hr />
<p>All input files and output files required to generate these examples are shipped in the MarpaX::Languages::Dash distro.</p>
<hr />
<p align = "center">Herewith a brief summary of the syntax.<br>
This syntax is a cut-down version of Graphviz's <a href = "http://www.graphviz.org/content/dot-language">DOT language</a>.<br>
Some sample data might not be acceptable to <a href="http://graphviz.org">Graphviz</a>.
If it is, there will be an image on the right-hand-side.</p>
<table align = "center" border = "1">
<tr>
<th align = "left">Element</th><th align = "left">Syntax</th>
</tr>
<tr>
<td>Edge names</td><td>Either '->' or '--'.</td>
</tr>
<tr>
<td>Node names</td><td>
1: Delimited by '[' and ']'.<br>
2: May be quoted with " or '.<br>
3: Escaped characters, using '\', are allowed.<br>
4: Internal spaces in node names are preserved even if not quoted.</td>
</tr>
<tr>
<td>Both edges and nodes can have attributes.</td>
</tr>
<tr>
<td>Attributes</td><td>
1: Delimited by '{' and '}'.<br>
2: Within that, any number of "key : value" pairs separated by ';'.<br>
3: Values may be quoted with " or ' or '<...>' or '<<table>...</table>>'.<br>
4: Escaped characters, using '\', are allowed.<br>
5: Internal spaces in attribute values are preserved even if not quoted.</td>
</tr>
</table>
<br>
( run in 0.762 second using v1.01-cache-2.11-cpan-39bf76dae61 )