Skip to content

Commit

Permalink
Dividing grammar into external/internal: t+
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Kegler authored and Jeffrey Kegler committed May 8, 2012
1 parent 7b2757b commit 809f372
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions r2/libmarpa/dev/marpa.w
Original file line number Diff line number Diff line change
Expand Up @@ -686,13 +686,6 @@ with their

@ @<Destroy grammar elements@> =
{
XSYID xsy_id;
ISYID isy_id;
const XSYID xsy_count = XSY_Count_of_G (g);
for (xsy_id = 0; xsy_id < xsy_count; xsy_id++)
{
my_free (XSY_by_ID (xsy_id));
}
DSTACK_DESTROY (g->t_xsy_stack);
DSTACK_DESTROY (g->t_isy_stack);
}
Expand Down Expand Up @@ -1128,7 +1121,7 @@ Symbols are used a nulling tokens, and
PRIVATE SYM
symbol_new (GRAMMAR g)
{
SYM symbol = my_new (struct s_xsy, 1);
SYM symbol = my_obstack_new (&g->t_obs, struct s_xsy, 1);
@<Initialize symbol elements @>@;
symbol_add (g, symbol);
return symbol;
Expand Down

0 comments on commit 809f372

Please sign in to comment.