From e8322ca988fc20baf7892915e6ccb069b11c608e Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 8 Jan 2022 18:14:59 +0530 Subject: feat(parser): implements or syntax --- src/types.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/types.ts') 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[] }, } -- cgit v1.3.1