diff options
| author | Joakim Verona | 2011-11-22 15:39:42 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-11-22 15:39:42 +0100 |
| commit | 40bb789236e486a3f36eefb2840c293369ce2af3 (patch) | |
| tree | 8e81d3aa5f232ec7f2c5187c683cb0998d2dc4e2 /admin/grammars | |
| parent | 62318aed495a48e24ff73fe79e420dd801df3189 (diff) | |
| parent | a8e1496d750ab0f571b3412ff61aaa4da640a036 (diff) | |
| download | emacs-40bb789236e486a3f36eefb2840c293369ce2af3.tar.gz emacs-40bb789236e486a3f36eefb2840c293369ce2af3.zip | |
upstream
Diffstat (limited to 'admin/grammars')
| -rw-r--r-- | admin/grammars/c.by | 6 | ||||
| -rw-r--r-- | admin/grammars/python.wy | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/admin/grammars/c.by b/admin/grammars/c.by index 1797827679b..004f0b5f30f 100644 --- a/admin/grammars/c.by +++ b/admin/grammars/c.by | |||
| @@ -566,7 +566,7 @@ template-type | |||
| 566 | (TYPE-TAG $2 "class" nil nil ) | 566 | (TYPE-TAG $2 "class" nil nil ) |
| 567 | | STRUCT symbol | 567 | | STRUCT symbol |
| 568 | (TYPE-TAG $2 "struct" nil nil ) | 568 | (TYPE-TAG $2 "struct" nil nil ) |
| 569 | ;; TODO: Klaus Berndl: For the moment is is ok, that we parse the C++ | 569 | ;; TODO: Klaus Berndl: For the moment it is ok, that we parse the C++ |
| 570 | ;; keyword typename as a class.... | 570 | ;; keyword typename as a class.... |
| 571 | | TYPENAME symbol | 571 | | TYPENAME symbol |
| 572 | (TYPE-TAG $2 "class" nil nil) | 572 | (TYPE-TAG $2 "class" nil nil) |
| @@ -734,7 +734,7 @@ builtintype | |||
| 734 | 734 | ||
| 735 | ;; Klaus Berndl: This parses also nonsense like "const volatile int | 735 | ;; Klaus Berndl: This parses also nonsense like "const volatile int |
| 736 | ;; const volatile const const volatile a ..." but IMHO nobody writes | 736 | ;; const volatile const const volatile a ..." but IMHO nobody writes |
| 737 | ;; such code. Normaly we shoud define a rule like typeformbase-mode | 737 | ;; such code. Normally we should define a rule like typeformbase-mode |
| 738 | ;; which exactly defines the different allowed cases and combinations | 738 | ;; which exactly defines the different allowed cases and combinations |
| 739 | ;; of declmods (minus the CVDECLMOD) typeformbase and cv-declmods so | 739 | ;; of declmods (minus the CVDECLMOD) typeformbase and cv-declmods so |
| 740 | ;; we could recognize more invalid code but IMHO this is not worth the | 740 | ;; we could recognize more invalid code but IMHO this is not worth the |
| @@ -1105,7 +1105,7 @@ fun-or-proto-end | |||
| 1105 | ( t ) | 1105 | ( t ) |
| 1106 | | semantic-list | 1106 | | semantic-list |
| 1107 | ( nil ) | 1107 | ( nil ) |
| 1108 | ;; Here is an anoying feature of C++ pure virtual methods | 1108 | ;; Here is an annoying feature of C++ pure virtual methods |
| 1109 | | EQUAL ZERO SEMICOLON | 1109 | | EQUAL ZERO SEMICOLON |
| 1110 | ( :pure-virtual-flag ) | 1110 | ( :pure-virtual-flag ) |
| 1111 | | fun-try-end | 1111 | | fun-try-end |
diff --git a/admin/grammars/python.wy b/admin/grammars/python.wy index a0af813e5e8..b30305ee78a 100644 --- a/admin/grammars/python.wy +++ b/admin/grammars/python.wy | |||
| @@ -828,7 +828,7 @@ paren_classes | |||
| 828 | ; | 828 | ; |
| 829 | 829 | ||
| 830 | ;; In general, the base class can be specified by a general expression | 830 | ;; In general, the base class can be specified by a general expression |
| 831 | ;; which evalue to a class object, i.e., base classes are not just names! | 831 | ;; which evaluates to a class object, i.e., base classes are not just names! |
| 832 | ;; However base classes are names in most cases. Thus the | 832 | ;; However base classes are names in most cases. Thus the |
| 833 | ;; non-terminals below work only with simple names. Even if the | 833 | ;; non-terminals below work only with simple names. Even if the |
| 834 | ;; parser can parse general expressions, I don't see much benefit in | 834 | ;; parser can parse general expressions, I don't see much benefit in |