diff options
author | Eli Bendersky <eliben@gmail.com> | 2013-07-24 05:46:00 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2013-07-24 05:46:00 -0700 |
commit | 3d4f91687b3d2536718c7b21bf55215692302876 (patch) | |
tree | 6706881c7a1792e9c345dfc1316cdc02d387f6a7 /pycparser/c_parser.py | |
parent | 3877c4c40d5560321a3d175d47ba4f84794af478 (diff) | |
download | pycparser-3d4f91687b3d2536718c7b21bf55215692302876.tar.gz |
Fix sys.path inclusion order in _build_tables.py (GH issue #12),
and some comment fixes.
Diffstat (limited to 'pycparser/c_parser.py')
-rw-r--r-- | pycparser/c_parser.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pycparser/c_parser.py b/pycparser/c_parser.py index e67c27f..ae94f74 100644 --- a/pycparser/c_parser.py +++ b/pycparser/c_parser.py @@ -290,7 +290,7 @@ class CParser(PLYParser): # should be separated from more complex types like enums # and structs. # - # This method fixes these problem. + # This method fixes these problems. # def _fix_decl_name_type(self, decl, typename): """ Fixes a declaration. Modifies decl. @@ -306,7 +306,7 @@ class CParser(PLYParser): # The typename is a list of types. If any type in this # list isn't an IdentifierType, it must be the only - # type in the list (it's illegal to declare "int enum .." + # type in the list (it's illegal to declare "int enum ..") # If all the types are basic, they're collected in the # IdentifierType holder. # @@ -655,7 +655,6 @@ class CParser(PLYParser): # the parser reduces decl_body, which actually adds the new # type into the table to be seen by the lexer before the next # line is reached. - # def p_declaration(self, p): """ declaration : decl_body SEMI """ |