diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2016-04-21 22:27:44 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-04-26 03:06:54 +0200 |
commit | a96b1fb89b9599d2b08dacc609d02cf305d634d5 (patch) | |
tree | d72069cd25538cc0f5dd7a413d55bc811d7fe39d /parser.y | |
parent | f5d46b97aed192b12eb992569d81a2c547b5ab5a (diff) | |
download | mig-a96b1fb89b9599d2b08dacc609d02cf305d634d5.tar.gz mig-a96b1fb89b9599d2b08dacc609d02cf305d634d5.tar.bz2 mig-a96b1fb89b9599d2b08dacc609d02cf305d634d5.zip |
Simplify ArgumentType production rule.
* parser.y: Move syColon from ArgumentType into Argument.
Diffstat (limited to 'parser.y')
-rw-r--r-- | parser.y | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -604,13 +604,13 @@ ArgumentList : Argument } ; -Argument : Direction syIdentifier ArgumentType IPCFlags +Argument : Direction syIdentifier syColon ArgumentType IPCFlags { $$ = argAlloc(); $$->argKind = $1; $$->argName = $2; - $$->argType = $3; - $$->argFlags = $4; + $$->argType = $4; + $$->argFlags = $5; } ; @@ -627,14 +627,14 @@ Direction : /* empty */ { $$ = akNone; } | syMsgSeqno { $$ = akMsgSeqno; } ; -ArgumentType : syColon syIdentifier +ArgumentType : syIdentifier { - $$ = itLookUp($2); + $$ = itLookUp($1); if ($$ == itNULL) - error("type '%s' not defined", $2); + error("type '%s' not defined", $1); } - | syColon NamedTypeSpec - { $$ = $2; } + | NamedTypeSpec + { $$ = $1; } ; LookString : /* empty */ |