]> ocean-lang.org Git - ocean/blobdiff - csrc/parsergen.mdc
Rename Indent and Undent to IN and OUT
[ocean] / csrc / parsergen.mdc
index e5c0dec0412631b801fccf53d019a26619298e00..df217dd8777b16003cd8195445a6e27a934ef8b4 100644 (file)
@@ -143,8 +143,8 @@ different token types that `scanner` can report.
                [TK_mark]         = "MARK",
                [TK_string]       = "STRING",
                [TK_multi_string] = "MULTI_STRING",
-               [TK_indent]       = "INDENT",
-               [TK_undent]       = "UNDENT",
+               [TK_in]           = "IN",
+               [TK_out]          = "OUT",
                [TK_newline]      = "NEWLINE",
                [TK_eof]          = "$eof",
        };
@@ -539,8 +539,8 @@ Now we are ready to read in the grammar.
                                 | (0 << TK_number)
                                 | (1 << TK_string)
                                 | (1 << TK_multi_string)
-                                | (1 << TK_indent)
-                                | (1 << TK_undent),
+                                | (1 << TK_in)
+                                | (1 << TK_out),
                };
 
                struct token_state *state = token_open(code, &conf);
@@ -2550,8 +2550,8 @@ something like this.
                struct token_config config = {
                        .ignored = (1 << TK_line_comment)
                                 | (1 << TK_block_comment)
-                                | (1 << TK_indent)
-                                | (1 << TK_undent),
+                                | (1 << TK_in)
+                                | (1 << TK_out),
                        .number_chars = ".,_+-",
                        .word_start = "",
                        .word_cont = "",