Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ECC: fix the mis-report of function return type position.
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1240 7335b38e-4728-0410-8992-fb3ffe349368
  • Loading branch information
jlin16 committed May 22, 2008
1 parent 0cd1859 commit f0954a4
Show file tree
Hide file tree
Showing 5 changed files with 6,356 additions and 6,222 deletions.
4 changes: 2 additions & 2 deletions Source/Python/Ecc/C.g
Expand Up @@ -123,7 +123,7 @@ declaration
| s=declaration_specifiers t=init_declarator_list? e=';'
{
if t != None:
self.StoreVariableDeclaration($s.start.line, $s.start.charPositionInLine, $e.line, $e.charPositionInLine, $s.text, $t.text)
self.StoreVariableDeclaration($s.start.line, $s.start.charPositionInLine, $t.start.line, $t.start.charPositionInLine, $s.text, $t.text)
}
;

Expand Down Expand Up @@ -318,7 +318,7 @@ initializer_list
// E x p r e s s i o n s

argument_expression_list
: assignment_expression (',' assignment_expression)*
: assignment_expression ('OPTIONAL')? (',' assignment_expression ('OPTIONAL')?)*
;

additive_expression
Expand Down
2 changes: 1 addition & 1 deletion Source/Python/Ecc/CLexer.py
@@ -1,4 +1,4 @@
# $ANTLR 3.0.1 C.g 2008-04-10 16:47:13
# $ANTLR 3.0.1 C.g 2008-05-21 14:36:29

from antlr3 import *
from antlr3.compat import set, frozenset
Expand Down

0 comments on commit f0954a4

Please sign in to comment.