// the content of the map
ElementPtr m(new MapElement(ctx.loc2pos(@1)));
ctx.stack_.push_back(m);
-} global_objects RCURLY_BRACKET {
+} global_object RCURLY_BRACKET {
// map parsing completed. If we ever want to do any wrap up
// (maybe some sanity checking), this would be the best place
// for it.
};
-// This represents top-level entries: Control-agent.
-global_objects: global_object
- ;
-
-// This represents a single top level entry, e.g. Control-agent.
-global_object: agent_object
- ;
-
-// This define the Control-agent object.
-agent_object: CONTROL_AGENT {
+// This represents the single top level entry, e.g. Control-agent.
+global_object: CONTROL_AGENT {
// Let's create a MapElement that will represent it, add it to the
// top level map (that's already on the stack) and put the new map
// the content of the map
ElementPtr m(new MapElement(ctx.loc2pos(@1)));
ctx.stack_.push_back(m);
-} global_objects RCURLY_BRACKET {
+} global_object RCURLY_BRACKET {
// map parsing completed. If we ever want to do any wrap up
// (maybe some sanity checking), this would be the best place
// for it.
};
-// This represents top-level entries: DhcpDdns.
-global_objects: global_object
- ;
-
-// This represents a single top level entry, e.g. DhcpDdns.
-global_object: dhcpddns_object
- ;
-
// --- dhcp ddns ---------------------------------------------
-
-dhcpddns_object: DHCPDDNS {
+// This represents the single top level entry, e.g. DhcpDdns.
+global_object: DHCPDDNS {
ElementPtr m(new MapElement(ctx.loc2pos(@1)));
ctx.stack_.back()->set("DhcpDdns", m);
ctx.stack_.push_back(m);
// the content of the map
ElementPtr m(new MapElement(ctx.loc2pos(@1)));
ctx.stack_.push_back(m);
-} global_objects RCURLY_BRACKET {
+} global_object RCURLY_BRACKET {
// map parsing completed. If we ever want to do any wrap up
// (maybe some sanity checking), this would be the best place
// for it.
ctx.require("Dhcp4", ctx.loc2pos(@1), ctx.loc2pos(@4));
};
-// This represents top-level entries: Dhcp4
-global_objects: global_object
- | global_objects COMMA global_object
- ;
-
-// This represents a single top level entry, e.g. Dhcp4.
-global_object: dhcp4_object
- ;
-
-dhcp4_object: DHCP4 {
+// This represents the single top level entry, e.g. Dhcp4.
+global_object: DHCP4 {
// This code is executed when we're about to start parsing
// the content of the map
// Prevent against duplicate.
// the content of the map
ElementPtr m(new MapElement(ctx.loc2pos(@1)));
ctx.stack_.push_back(m);
-} global_objects RCURLY_BRACKET {
+} global_object RCURLY_BRACKET {
// map parsing completed. If we ever want to do any wrap up
// (maybe some sanity checking), this would be the best place
// for it.
ctx.require("Dhcp6", ctx.loc2pos(@1), ctx.loc2pos(@4));
};
-// This represents top-level entries: Dhcp6
-global_objects: global_object
- | global_objects COMMA global_object
- ;
-
-// This represents a single top level entry, e.g. Dhcp6.
-global_object: dhcp6_object
- ;
-
-dhcp6_object: DHCP6 {
+// This represents the single top level entry, e.g. Dhcp6.
+global_object: DHCP6 {
// This code is executed when we're about to start parsing
// the content of the map
// Prevent against duplicate.
// the content of the map
ElementPtr m(new MapElement(ctx.loc2pos(@1)));
ctx.stack_.push_back(m);
-} global_objects RCURLY_BRACKET {
+} global_object RCURLY_BRACKET {
// map parsing completed. If we ever want to do any wrap up
// (maybe some sanity checking), this would be the best place
// for it.
};
-// This represents top-level entries: Netconf.
-global_objects: global_object
- | global_objects COMMA global_object
- ;
-
-// This represents a single top level entry, e.g. Netconf.
-global_object: netconf_object
- ;
-
-// This define the Netconf object.
-netconf_object: NETCONF {
+// This represents the single top level entry, e.g. Netconf.
+global_object: NETCONF {
// Let's create a MapElement that will represent it, add it to the
// top level map (that's already on the stack) and put the new map