Type aliases
typeDFA
typeDFA
: Array<{ exit
: boolean; links
: Array<typeDFALink> }>
typeDFALink
typeDFALink: { action: string; next: number }
Type declaration
-
action: string
-
next: number
typeNFA
typeNFA: Array<{ action: string; offsets: Array<number> }>
typeRule
type
Rule: { dfa: typeDFA; token: string }
typeToken
typeToken: { col: number; line: number; symbol: string; token: string }
Type declaration
-
col: number
-
line: number
-
symbol: string
-
token: string
輸入多條 Token Rule 後回傳 Lexical Analyzer