From 664b34059624d525d38da3e9e452a4bfc190a585 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 26 Dec 2023 18:26:40 -0600 Subject: Add support for username --- lib/parser.mly | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/parser.mly') diff --git a/lib/parser.mly b/lib/parser.mly index e6bcb6d..177daaf 100644 --- a/lib/parser.mly +++ b/lib/parser.mly @@ -17,6 +17,7 @@ %token RBRACE %token EMAIL %token STRING +%token USERNAME %start prog %% @@ -30,6 +31,7 @@ id_or_other: | UUIDV4 { "uuidv4" } | INCREMENT { "increment" } | EMAIL { "email" } + | USERNAME { "username" } expr: @@ -54,6 +56,9 @@ row: | row_title = id_or_other; EMAIL; COMMA; r = row { Email (row_title, r) } | row_title = id_or_other; EMAIL { Email (row_title, End) } + | row_title = id_or_other; USERNAME; COMMA; r = row { Username (row_title, r) } + | row_title = id_or_other; USERNAME { Username (row_title, End) } + | row_title = id_or_other; INCREMENT; COMMA; r = row { Increment (row_title, r) } | row_title = id_or_other; INCREMENT { Increment (row_title, End) } -- cgit v1.2.3