From 91f43789e09030af78d32f063257c1124485b490 Mon Sep 17 00:00:00 2001 From: Jeffrey Kegler Date: Wed, 9 May 2012 07:35:52 -0700 Subject: [PATCH] Dividing grammar into external/internal: t+ --- r2/libmarpa/dev/marpa.w | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r2/libmarpa/dev/marpa.w b/r2/libmarpa/dev/marpa.w index 501b7049f..c16c9c6ba 100644 --- a/r2/libmarpa/dev/marpa.w +++ b/r2/libmarpa/dev/marpa.w @@ -1254,6 +1254,7 @@ int marpa_g_symbol_is_nulling(GRAMMAR g, SYMID symid) @ Symbol Is Nullable Boolean @d XSY_is_Nullable(sym) ((sym)->t_is_nullable) +@d SYM_is_Nullable(sym) XSY_is_Nullable(sym) @ = unsigned int t_is_nullable:1; @ @ = symbol->t_is_nullable = 0; @@ -3183,7 +3184,7 @@ into multiple CHAF rules. SYM symbol = SYM_by_ID (symid); if (SYM_is_Nulling (symbol)) continue; /* Do nothing for nulling symbols */ - if (symbol_null_alias (symbol)) + if (SYM_is_Nullable(symbol)) { /* If a proper nullable, record its position */ factor_positions[factor_count++] = rhs_ix;