A context free grammer defination.
Example: A CFG G=({S}, {a}, { S -> aS | S }, S) can be represented as:
{ nonTerminals: ["S"], terminals: ["a"], startSymbol: ["S"], productions: [ { symbol: ["S"], produces: ["a", "S"] }, { symbol: ["S"], produces: ["a"] }, ... ] }
CFGDefination
Set of non terminals of grammer.
{string[]}
The array of productions of grammer.
{Production[]}
The start symbol of grammer.
{string}
Set of terminals of grammer.
Generated using TypeDoc
A context free grammer defination.
Example: A CFG G=({S}, {a}, { S -> aS | S }, S) can be represented as:
{ nonTerminals: ["S"], terminals: ["a"], startSymbol: ["S"], productions: [ { symbol: ["S"], produces: ["a", "S"] }, { symbol: ["S"], produces: ["a"] }, ... ] }
CFGDefination