1
0
forked from GitHub/gf-core

more comments

This commit is contained in:
Krasimir Angelov
2022-09-12 12:20:30 +02:00
parent bd3ccb4a0d
commit 1957eb1fc5

View File

@@ -9,9 +9,13 @@ mkAPI().then((pgf) => {
console.log('arity', expr.arity());
pgf.readPGF("Foods.pgf").then((gr) => {
// Print its name
// Print the grammar name
console.log(gr.abstractName);
// Access a language and print the concrete name
console.log(gr.languages["FoodsEng"].name);
// Linearize an expression
console.log(gr.languages["FoodsEng"].linearize(expr));
});
});