Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2
Révision | 7e121f56e9bc048be98fccc83552ccea60ecb814 (tree) |
---|---|
l'heure | 2022-01-15 07:17:08 |
Auteur | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
(empty log message)
@@ -21,7 +21,7 @@ | ||
21 | 21 | |
22 | 22 | missing_visitors: |
23 | 23 | @for R in ${GRAMMAR_RULES}; do \ |
24 | - if ! grep -q -E "^ *((def)|(# *NOVISITOR_NEEDED:)) *visit_$$R" ./visitor.py> /dev/null ; then\ | |
24 | + if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) *visit_$$R" ./visitor.py> /dev/null ; then\ | |
25 | 25 | echo "Warning: $${R} has no visitor (nor is marked as to need none)" ;\ |
26 | 26 | fi ;\ |
27 | 27 | done |
@@ -8,13 +8,15 @@ | ||
8 | 8 | class QuantityError(ValueError): pass |
9 | 9 | |
10 | 10 | |
11 | -#NOVISITOR_NEEDED: visit_str_no_s1 | |
12 | -#NOVISITOR_NEEDED: visit_str_no_d1 | |
13 | -#NOVISITOR_NEEDED: visit_str_no_s3 | |
14 | -#NOVISITOR_NEEDED: visit_str_no_d3 | |
15 | -#NOVISITOR_NEEDED: visit_comment | |
16 | -#NOVISITOR_NEEDED: visit_ID | |
17 | -#NOVISITOR_NEEDED: visit_re_no_slash | |
11 | +#NO_VISITOR_NEEDED: visit_str_no_s1 | |
12 | +#NO_VISITOR_NEEDED: visit_str_no_d1 | |
13 | +#NO_VISITOR_NEEDED: visit_str_no_s3 | |
14 | +#NO_VISITOR_NEEDED: visit_str_no_d3 | |
15 | +#NO_VISITOR_NEEDED: visit_comment | |
16 | +#NO_VISITOR_NEEDED: visit_ID | |
17 | +#NO_VISITOR_NEEDED: visit_term | |
18 | +#NO_VISITOR_NEEDED: visit_re_no_slash | |
19 | +#NO_VISITOR_NEEDED: visit_group | |
18 | 20 | |
19 | 21 | class PegVisitor(arpeggio.PTNodeVisitor): |
20 | 22 | token_2_class = {'?': peg.Optional, |