From 9a0a8ae809f1d4234465569d3bb5094f5d8ffd95 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 28 Dec 2022 11:27:01 -0800 Subject: [PATCH] How are we going to do this? --- src/lex.re.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/lex.re.c b/src/lex.re.c index b9b2423..2ed0a3f 100644 --- a/src/lex.re.c +++ b/src/lex.re.c @@ -3,6 +3,11 @@ Lexer for journal entries. + "^[edict: expect; there; to; be; args] Something.\n" + "^[] Something.\n" + "+.{2}()$" + " -- \"*\n" + @std C89/90 */ #include "../src/lex.h" @@ -12,17 +17,13 @@ #include #include - - - - - /* This defines `enum condition`. */ /*!types:re2c*/ -/* "[edict: expect; there; to; be; args]", in this case, expect would be a - stack of `size = 5` `EXPECT_KEYWORD`. This mirrors arguments in `LEX_SYMBOL` - and should also be an `edict_*` in and . */ +/* In this case, expect + would be a stack of `size = 5` `EXPECT_KEYWORD`. This mirrors arguments in + `LEX_SYMBOL` and should also be an `edict_*` in and + . */ #define EXPECT_HEAD X(keyword, KEYWORD) X(date, DATE) X(natural, NATURAL) \ X(restrict_text, RESTRICT_TEXT) #define EXPECT_CONS Y(end_text, END_TEXT)