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()); }
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(); }