• R/O
  • SSH

Commit

Tags
Aucun tag

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

Révision679f746f4bf17fa9ac8ea1c3633093e2f432c9aa (tree)
l'heure2022-05-19 19:32:39
AuteurAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Message de Log

asis/comment/doc added

Change Summary

Modification

diff -r bc6b5143377d -r 679f746f4bf1 castle/readers/parser/grammar/language.py
--- a/castle/readers/parser/grammar/language.py Thu May 19 12:31:21 2022 +0200
+++ b/castle/readers/parser/grammar/language.py Thu May 19 12:32:39 2022 +0200
@@ -1,3 +1,19 @@
1+# (C) Albert Mietus, 2022
2+"""This module `grammar/language` defines the peg_grammar (declarations) that can be used in Castle.
3+
4+A peg_grammar (in Castle2) mainly contains (parse_)rules, but can also define setting (a kind of LEXER aliases).
5+
6+Any rule looks like::
7+ Name '<-' E1 E2 '|' E3 ';'
8+
9+Where Ex are (expression) rules itself.
10+
11+.. seealso:: The language is defined in arpeggio statements (that is a PEG itself, but using python syntax).
12+
13+ See https://textx.github.io/Arpeggio/
14+"""
15+
16+
117 from arpeggio import Optional, ZeroOrMore, OneOrMore, EOF
218 from arpeggio import RegExMatch as _
319 from arpeggio import ParserPython