apg-lite
Version:
lightweight JavaScript APG parser
43 lines (42 loc) • 1.04 kB
HTML
<html lang="en">
<head>
<title>apg-exp</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/start/jquery-ui.css" />
<style>
body {
margin: 10px;
height: 100%;
font-size: 100%
}
#parse {
width: 100px;
}
#string {
font-family: monospace;
}
.comment {
font-size: 100%;
font-style: italic;
}
</style>
</head>
<body>
<p>
Parse statements with emoticons:<br>
<pre id="grammar-bnf"></pre>
</p>
<p>
<b>statments to parse:</b><br>
<textarea id="string" wrap="off" rows="2" cols="30"></textarea>
</p>
<p>
<input type="button" id="parse" value="parse" /><span id="parse-msg" class="comment">
</p>
<p id="result"><pre id="values"></pre></p>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script src="./web-min.js" charset="utf-8"></script>
</html>