summaryrefslogtreecommitdiff
path: root/includes/htmlparser/rebuildgrammar.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/htmlparser/rebuildgrammar.php')
-rw-r--r--includes/htmlparser/rebuildgrammar.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/includes/htmlparser/rebuildgrammar.php b/includes/htmlparser/rebuildgrammar.php
new file mode 100644
index 0000000..9b5bdbb
--- /dev/null
+++ b/includes/htmlparser/rebuildgrammar.php
@@ -0,0 +1,13 @@
+<?php
+
+//include ("common.inc");
+
+include ("htmlgrammarparser.inc");
+$p = new HtmlGrammarParser("htmlgrammar.dat");
+$p->Parse();
+$p->PrintErrors();
+$p->SaveGrammar("htmlgrammar.cmp");
+print "Done.";
+//PrintArray($p->pg);
+
+?>