<?xml version="1.0" encoding="Shift_JIS" standalone="yes" ?>
<package>
<job id="aexp">
<runtime>
<description>Sample of arith_exp_parser.js</description>
</runtime>

<?job error="true" debug="true" ?>
<script language="javascript" src="arith_exp_parser.js" />
<script language="javascript" src="disptree.js"/>
<script language="VBScript">
<![CDATA[
Function inputExp
  inputExp = InputBox("計算式を入力してください。", "計算式", "1234*2345+34/456-56")
End Function
]]>
</script>
<script language="JScript">
<![CDATA[
try {
  var p = new AEParser(inputExp());
  var n = null;
  WScript.Echo((n=p.parse())?n.toString():"syntax error.");
  WScript.Echo(disptree(0, "", n, "\n"));
} catch (e) {
  WScript.Echo(Number(e.number & 0xffff).toString() + ": " + e.description);
} finally {
  WScript.Quit();
}
]]>
</script>
</job>
</package>
