Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Dividing grammar into external/internal: t+
  • Loading branch information
Jeffrey Kegler authored and Jeffrey Kegler committed May 9, 2012
1 parent bef7025 commit 91f4378
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion r2/libmarpa/dev/marpa.w
Expand Up @@ -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)
@<Bit aligned symbol elements@> = unsigned int t_is_nullable:1;
@ @<Initialize symbol elements@> =
symbol->t_is_nullable = 0;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 91f4378

Please sign in to comment.