/** Formats one or more motor directives that are appended to the end of motor commands. */ private void formatMotorDirectives() { if (lexer.atCommandEnd()) return; while (NXTalk.getMotorDirective(lexer.peekNext()) != null) { append(lexer.getNext(), Syntax.MotorDirective); skipNext("and"); } }
/** Formats a new line statement. */ private void formatNewLine() { if (lexer.atCommandEnd()) append(lexer.getNext(), Syntax.Null); }
/** Formats an operator. */ private void formatOperator() { append(lexer.getNext(), Syntax.Operator); if (lexer.atCommandEnd()) append(); }