Exemplo n.º 1
0
        public void ParseTest()
        {
            var context   = new ParserContext(new Vrml97Tokenizer(new StringReader(@"
ROUTE nodeOut.eventOut TO nodeIn.eventIn
")));
            var statement = RouteStatement.Parse(context);

            Assert.AreEqual("nodeOut", statement.NodeOut);
            Assert.AreEqual("eventOut", statement.EventOut);
            Assert.AreEqual("nodeIn", statement.NodeIn);
            Assert.AreEqual("eventIn", statement.EventIn);
        }
Exemplo n.º 2
0
 protected virtual void ParseRouteStatement(ParserContext context)
 {
     var statement = RouteStatement.Parse(context);
     //TODO: Process route statement.
 }
 public override void ExplicitVisit(RouteStatement fragment)
 {
     _fragments.Add(fragment);
 }
Exemplo n.º 4
0
 protected virtual void ParseRouteStatement(ParserContext context)
 {
     var statement = RouteStatement.Parse(context);
 }
Exemplo n.º 5
0
 public override void ExplicitVisit(RouteStatement node) { this.action(node); }