Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/md/using-in-frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function compileGrammar(sourceCode) {
const grammarAst = grammarParser.results[0]; // TODO check for errors

// Compile the AST into a set of rules
const grammarInfoObject = compile(grammarAst, {});
const grammarInfoObject = compile(grammarAst, { argv: [] });
// Generate JavaScript code from the rules
const grammarJs = generate(grammarInfoObject, "grammar");

Expand Down