Ejemplo n.º 1
0
        private ParsedOperand[] ParseOperands()
        {
            var ops = new List <ParsedOperand>();
            var tok = lexer.Peek();
            var opp = new OperandParser(arch, lexer, Assembler);

            if (tok.Type != TokenType.EOF && tok.Type != TokenType.EOL)
            {
                ops.Add(opp.ParseOperand());
                while (lexer.PeekAndDiscard(TokenType.Comma))
                {
                    ops.Add(opp.ParseOperand());
                }
            }
            lexer.PeekAndDiscard(TokenType.EOL);
            return(ops.ToArray());
        }
Ejemplo n.º 2
0
 private ParsedOperand[] ParseOperands()
 {
     var ops = new List<ParsedOperand>();
     var tok = lexer.Peek();
     var opp = new OperandParser(arch, lexer, Assembler);
     if (tok.Type != TokenType.EOF && tok.Type != TokenType.EOL)
     {
         ops.Add(opp.ParseOperand());
         while (lexer.PeekAndDiscard(TokenType.Comma))
         {
             ops.Add(opp.ParseOperand());
         }
     }
     lexer.PeekAndDiscard(TokenType.EOL);
     return ops.ToArray();
 }