Commit 1ddff597 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

тестовая страничка для парсера на ксг.

добавлен сгенерированный парсер по ксг
добавлен сторонний парсер формул.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59753 954022d7-b5bf-4e40-9824-e11837661b57
parent 810d8289
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" src="parserTest5.js" ></script>
<!--<script type="text/javascript" src="parserTest3.js" ></script>-->
<script type="text/javascript" src="parserTest.js" ></script>
<script>
function parseFormula1(){
var parse = parserTest.parse, i = 0, r, v;
v = document.getElementById("formula1").value;
var s = new Date().getTime();
r = parse(v);
var e = new Date().getTime();
console.log("e-s "+ (e - s));
console.log(r);
}
function parseFormula2(){
var r,v = document.getElementById("formula2").value;
var s = new Date().getTime();
r = getTokens(v);
var e = new Date().getTime();
console.log(r.items);
console.log("e-s "+ (e - s));
}
</script>
</head>
<body>
<p>
<input type="text" id="formula1" style="width: 500px" onkeyup="parseFormula1()"/>
<input type="submit" value="parse it" onclick="parseFormula1()"/>
</p>
<p>
<input type="text" id="formula2" style="width: 500px" onkeyup="parseFormula2()"/>
<input type="submit" value="parse it" onclick="parseFormula2()"/>
</p>
</body>
</html>
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment