public String getCurrentLine() { return src.getCurrentLine(); }
public String getCurrentLine() { return src.getCurrentLine(); }
private void syntaxError(LexerSource src) { throw new SyntaxException(PID.STRING_MARKER_MISSING, src.getPosition(), src.getCurrentLine(), "can't find string \"" + marker + "\" anywhere before EOF", marker); } }
private void syntaxError(LexerSource src) { throw new SyntaxException(PID.STRING_MARKER_MISSING, src.getPosition(), src.getCurrentLine(), "can't find string \"" + marker + "\" anywhere before EOF", marker); } }
private void escaped(RubyYaccLexer lexer, Encoding encoding, LexerSource src, ByteList buffer) throws java.io.IOException { int c; switch (c = src.read()) { case '\\': parseEscapeIntoBuffer(lexer, encoding, src, buffer); break; case RubyYaccLexer.EOF: throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); default: buffer.append(c); } }
private void escaped(RubyYaccLexer lexer, Encoding encoding, LexerSource src, ByteList buffer) throws java.io.IOException { int c; switch (c = src.read()) { case '\\': parseEscapeIntoBuffer(lexer, encoding, src, buffer); break; case RubyYaccLexer.EOF: throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); default: buffer.append(c); } }
if (c == RubyYaccLexer.EOF) { throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); if (!RubyYaccLexer.isHexChar(c)) { throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); if ((c = src.read()) != '-') { throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); if ((c = src.read()) != '-') { throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); case RubyYaccLexer.EOF: throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); default: if (!lexer.isOneEight() && !Encoding.isAscii((byte) c)) {
if (c == RubyYaccLexer.EOF) { throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); if (!RubyYaccLexer.isHexChar(c)) { throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); if ((c = src.read()) != '-') { throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); if ((c = src.read()) != '-') { throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); case RubyYaccLexer.EOF: throw new SyntaxException(PID.INVALID_ESCAPE_SYNTAX, src.getPosition(), src.getCurrentLine(), "Invalid escape character syntax"); default: if (!lexer.isOneEight() && !Encoding.isAscii((byte) c)) {
src.getCurrentLine(), "unterminated string meets end of file");
src.getCurrentLine(), "unterminated string meets end of file");