zbraniecki / l20n

Python l20n support library
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

l20n grammar: allow member_expression.ID and member_expression..ID #13

Open fabi1cazenave opened 12 years ago

fabi1cazenave commented 12 years ago

The grammar currently states:

property_expression :  member_expression WS? '['  WS? expression WS ']' | ID '.' ID;
attr_expression     :  member_expression WS? '[.' WS? expression WS ']' | ID '..' ID;

I think it should be something like:

property_expression :  member_expression WS? ('['  WS? expression WS? ']') | ('.' ID);
attr_expression     :  member_expression WS? ('[.' WS? expression WS? ']') | ('..' ID);
fabi1cazenave commented 12 years ago

OOT: is there a page that explains the difference between an l20n property and an l20n attribute?