Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(62)

Unified Diff: Parser/firstsets.c

Issue 3353: make built-in tokenizer available via Python C API
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Parser/acceler.c ('k') | Parser/grammar1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Parser/firstsets.c
+++ b/Parser/firstsets.c
@@ -80,7 +80,7 @@ calcfirstset(grammar *g, dfa *d)
"no mem to resize sym in calcfirstset");
sym[nsyms++] = a->a_lbl;
type = l0[a->a_lbl].lb_type;
- if (ISNONTERMINAL(type)) {
+ if (PYTOK_ISNONTERMINAL(type)) {
d1 = PyGrammar_FindDFA(g, type);
if (d1->d_first == dummy) {
fprintf(stderr,
@@ -94,7 +94,7 @@ calcfirstset(grammar *g, dfa *d)
d1->d_first, nbits);
}
}
- else if (ISTERMINAL(type)) {
+ else if (PYTOK_ISTERMINAL(type)) {
addbit(result, a->a_lbl);
}
}
« no previous file with comments | « Parser/acceler.c ('k') | Parser/grammar1.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+