mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
resource-api demo
This commit is contained in:
10
demos/resource-api/grammarReference.js
Normal file
10
demos/resource-api/grammarReference.js
Normal file
@@ -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"));
|
||||
Reference in New Issue
Block a user