]> ocean-lang.org Git - ocean/commitdiff
parsergen: remove newline_only
authorNeilBrown <neil@brown.name>
Fri, 5 Mar 2021 09:41:47 +0000 (20:41 +1100)
committerNeilBrown <neil@brown.name>
Wed, 10 Mar 2021 01:00:32 +0000 (12:00 +1100)
newline_only is not wanted any more.  It wasn't being set anyway.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/parsergen.mdc

index 106f5f3e9f070717aac525d7a521ee159e2fb8ac..fe129e6a335da426a579001d6e31bdb5286a5910 100644 (file)
@@ -1957,7 +1957,6 @@ The go to table is stored in a simple array of `sym` and corresponding
                short reduce_prod;
                short reduce_size;
                short reduce_sym;
-               char newline_only;
                short result_size;
        };
 
@@ -2918,7 +2917,6 @@ checks if a given token is in any of these look-ahead sets.
                        }
                force_reduce:
                        if (states[tos->state].reduce_prod >= 0 &&
-                           states[tos->state].newline_only &&
                            !(tk->num == TK_newline ||
                              tk->num == TK_eof ||
                              tk->num == TK_out ||