• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

Revisãoc1d254b86a72fc5f1c121f95c92bd8f00a4f9e98 (tree)
Hora2022-04-23 20:08:21
AutorAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Mensagem de Log

REFACTORED: Now we have a sub-package 'grammar' (in castle.reader.parser). It holds the (peg)grammar&vistitor to parser that chunk of of Castle

Mudança Sumário

Diff

diff -r 5b918e28475e -r c1d254b86a72 Makefile
--- a/Makefile Fri Apr 22 23:25:53 2022 +0200
+++ b/Makefile Sat Apr 23 13:08:21 2022 +0200
@@ -21,18 +21,18 @@
2121 pytest-demo:
2222 -PYTHONPATH=`pwd` pytest -s demos || echo "currently NO pytest-demos (check/fix manually)"
2323
24-
25-
26-missing_visitor: castle/readers/parser/grammar.py
24+LANGUAGEd=castle/readers/parser/grammar/
25+missing_visitor: ${LANGUAGEd}language.py
2726 @for R in $(shell grep '^ *def ' $< | awk '{print $$2}' | sed 's/()://') ; do \
28- if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) *visit_$$R" castle/readers/parser/visitor.py > /dev/null ; then\
27+ if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) *visit_$$R" ${LANGUAGEd}visitor.py > /dev/null ; then\
2928 echo "Warning: $${R} has no visitor (nor is marked as to need none)" ;\
3029 fi ;\
3130 done
3231
33-missing_serialization:
34- @for R in ${shell grep '^ *class ' castle/ast/grammar.py | sed 's/class //g' | sed 's/[:( ].*$$//g' } ; do \
35- if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) $${R}2xml" castle/ast/serialization/ast2xml/*.py > /dev/null ; then\
32+ASTd=castle/ast/
33+missing_serialization: ${ASTd}grammar.py
34+ @for R in ${shell grep '^ *class ' $< | sed 's/class //g' | sed 's/[:( ].*$$//g' } ; do \
35+ if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) $${R}2xml" ${ASTd}serialization/ast2xml/*.py > /dev/null ; then\
3636 echo "Warning: $${R} has no xml-serializer (nor is marked as to need none)" ;\
3737 fi ;\
3838 done