summaryrefslogtreecommitdiff
path: root/demos/resource-api/grammarReference.js
diff options
context:
space:
mode:
Diffstat (limited to 'demos/resource-api/grammarReference.js')
-rw-r--r--demos/resource-api/grammarReference.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/demos/resource-api/grammarReference.js b/demos/resource-api/grammarReference.js
new file mode 100644
index 000000000..a524cfefb
--- /dev/null
+++ b/demos/resource-api/grammarReference.js
@@ -0,0 +1,10 @@
+// Grammar Reference
+function concreteReference(concreteSyntax, concreteSyntaxName) {
+this.concreteSyntax = concreteSyntax;
+this.concreteSyntaxName = concreteSyntaxName;
+}
+var myAbstract = OverLang ;
+var myConcrete = new Array();
+myConcrete.push(new concreteReference(OverLangEng,"OverLangEng"));
+myConcrete.push(new concreteReference(OverLangRus,"OverLangRus"));
+myConcrete.push(new concreteReference(OverLangSwe,"OverLangSwe"));