diff options
| author | Akshay Nair <phenax5@gmail.com> | 2022-01-08 18:14:59 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2022-01-08 18:16:48 +0530 |
| commit | e8322ca988fc20baf7892915e6ccb069b11c608e (patch) | |
| tree | eaef108f21389268d42218eacde2256884a62f64 /src/types.ts | |
| parent | e1092bfca260412ab716710d31c24c86d3a818e1 (diff) | |
| download | elxr-e8322ca988fc20baf7892915e6ccb069b11c608e.tar.gz elxr-e8322ca988fc20baf7892915e6ccb069b11c608e.zip | |
feat(parser): implements or syntax
Diffstat (limited to 'src/types.ts')
| -rw-r--r-- | src/types.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/types.ts b/src/types.ts index 7863981..7f6546f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,19 +1,19 @@ import { constructors, Union } from "./utils" type ExprT = { - Start: any, - End: any, + Start: null, + End: null, Optional: { expr: Expr }, OneOrMore: { expr: Expr }, ZeroOrMore: { expr: Expr }, - NextItem: any, - AnyItem: any, - Or: any, - AnyString: any, - AnyNumber: any, - AnyBool: any, - Truthy: any, - Falsey: any, + NextItem: null, + AnyItem: null, + Or: { left: Expr, right: Expr[] }, + AnyString: null, + AnyNumber: null, + AnyBool: null, + Truthy: null, + Falsey: null, Group: { exprs: Expr[] }, } |
