lib/webidl/parser/idl.treetop in webidl-0.0.9 vs lib/webidl/parser/idl.treetop in webidl-0.1.0
- old
+ new
@@ -19,15 +19,15 @@
rule Module
"module" ws name:identifier ws "{" ws defs:Definitions ws "}" ws ";" <ParseTree::Module>
end
rule Interface
- "interface" ws name:identifier ws inherits:InterfaceInheritance ws "{" ws members:InterfaceMembers ws "}" ws ";" <ParseTree::Interface>
+ "interface" ws name:identifier ws inherits:Inheritance ws "{" ws members:InterfaceMembers ws "}" ws ";" <ParseTree::Interface>
end
- rule InterfaceInheritance
- (":" ws names:ScopedNameList <ParseTree::InterfaceInheritance>)?
+ rule Inheritance
+ (":" ws names:ScopedNameList <ParseTree::Inheritance>)?
end
# extract to a generic Members syntax node?
rule InterfaceMembers
(eal:ExtendedAttributeList ws member:InterfaceMember ws members:InterfaceMembers ws <ParseTree::InterfaceMembers>)?
@@ -36,10 +36,10 @@
rule InterfaceMember
Const / AttributeOrOperation
end
rule Exception
- "exception" ws name:identifier ws "{" ws members:ExceptionMembers ws "}" ws ";" <ParseTree::Exception>
+ "exception" ws name:identifier ws inherits:Inheritance ws "{" ws members:ExceptionMembers ws "}" ws ";" <ParseTree::Exception>
end
# extract to a generic Members syntax node?
rule ExceptionMembers
(eal:ExtendedAttributeList ws member:ExceptionMember ws members:ExceptionMembers ws <ParseTree::InterfaceMembers>)?