Skip to content

yyuneko/jly-parser

Repository files navigation

Usage

type grammar = {
    startSymbol: string;
    tokens: (string[]) | string;
    operators: {
        0: "left" | "right",
        [index: number]: string
    }[];// e.g. [["left","A","B","C"],["right","D"]]
    bnf: {
        [nonterminal: string]: {
            handle: (string[]) | string;
            func?: (symbols: any) => void;
        }[]
    }
}

example:

See example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published