Exemplo n.º 1
0
 Statement ParseBrInstruction()
 {
     AcceptElement(Token.Br);
     if (AcceptElementIfNext(Token.Label))
     {
         return(new LabelBrStatement
         {
             TargetLabel = AcceptElement(Token.LocalIdentifier).Data
         });
     }
     else
     {
         var stmt = new ConditionalBrStatement();
         stmt.Type       = ParseType();
         stmt.Identifier = AcceptElement(Token.LocalIdentifier).Data;
         AcceptElement(Token.Comma);
         AcceptElement(Token.Label);
         stmt.Label1 = AcceptElement(Token.LocalIdentifier).Data;
         AcceptElement(Token.Comma);
         AcceptElement(Token.Label);
         stmt.Label2 = AcceptElement(Token.LocalIdentifier).Data;
         return(stmt);
     }
 }
Exemplo n.º 2
0
 public object Visit(ConditionalBrStatement conditionalBrStatement)
 {
     return(null);
 }