Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Parsing of Meter does not reflect the specification ver 1.0.2 #6

Open
signorello opened this issue Aug 14, 2015 · 0 comments
Open

Parsing of Meter does not reflect the specification ver 1.0.2 #6

signorello opened this issue Aug 14, 2015 · 0 comments

Comments

@signorello
Copy link

Dear all,

according to the specification, section 7.2. Meters, you have the following BNF for a meter

meter_declaration ::=
meter meter_name {
type : meter_type ;
result : field_ref ;
[ direct_or_static ; ]
[ instance_count : const_value ; ]
}

but then you swap 'result' and 'direct_or_static' order into the parser rule at line 1218 of parser.py

def p_meter_declaration(self, p):
    """ meter_declaration : METER ID LBRACE \
                                TYPE COLON meter_type SEMI \
                                direct_or_static \
                                direct_result \
                                instance_count \
                            RBRACE

I think this probably is a typo, so I've issued a pull request to fix the order.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant