Lines Matching full:eof
39 assertThat(lex("\nasd dsa\n")).containsExactly("IDENT(asd)", "IDENT(dsa)", "EOF"); in testSimple()
44 assertThat(lex("\nasd++asd\n")).containsExactly("IDENT(asd)", "INCR", "IDENT(asd)", "EOF"); in testOperator()
51 .containsExactly("INT_LITERAL(1)", "PLUS", "INT_LITERAL(0b1000100101)", "EOF"); in boolLiteral()
57 .containsExactly("INT_LITERAL(1)", "PLUS", "INT_LITERAL(01234567)", "EOF"); in octalLiteral()
62 assertThat(lex("0L")).containsExactly("LONG_LITERAL(0L)", "EOF"); in testLiteral()
63 assertThat(lex("0")).containsExactly("INT_LITERAL(0)", "EOF"); in testLiteral()
64 assertThat(lex("0x7fff_ffff")).containsExactly("INT_LITERAL(0x7fff_ffff)", "EOF"); in testLiteral()
65 assertThat(lex("0177_7777_7777")).containsExactly("INT_LITERAL(0177_7777_7777)", "EOF"); in testLiteral()
67 .containsExactly("INT_LITERAL(0b0111_1111_1111_1111_1111_1111_1111_1111)", "EOF"); in testLiteral()
68 assertThat(lex("0x8000_0000")).containsExactly("INT_LITERAL(0x8000_0000)", "EOF"); in testLiteral()
69 assertThat(lex("0200_0000_0000")).containsExactly("INT_LITERAL(0200_0000_0000)", "EOF"); in testLiteral()
71 .containsExactly("INT_LITERAL(0b1000_0000_0000_0000_0000_0000_0000_0000)", "EOF"); in testLiteral()
72 assertThat(lex("0xffff_ffff")).containsExactly("INT_LITERAL(0xffff_ffff)", "EOF"); in testLiteral()
73 assertThat(lex("0377_7777_7777")).containsExactly("INT_LITERAL(0377_7777_7777)", "EOF"); in testLiteral()
75 .containsExactly("INT_LITERAL(0b1111_1111_1111_1111_1111_1111_1111_1111)", "EOF"); in testLiteral()
80 assertThat(lex("1l")).containsExactly("LONG_LITERAL(1l)", "EOF"); in testLong()
82 .containsExactly("LONG_LITERAL(9223372036854775807L)", "EOF"); in testLong()
84 .containsExactly("MINUS", "LONG_LITERAL(9223372036854775808L)", "EOF"); in testLong()
86 .containsExactly("LONG_LITERAL(0x7fff_ffff_ffff_ffffL)", "EOF"); in testLong()
88 .containsExactly("LONG_LITERAL(07_7777_7777_7777_7777_7777L)", "EOF"); in testLong()
94 "EOF"); in testLong()
96 .containsExactly("LONG_LITERAL(0x8000_0000_0000_0000L)", "EOF"); in testLong()
98 .containsExactly("LONG_LITERAL(010_0000_0000_0000_0000_0000L)", "EOF"); in testLong()
104 "EOF"); in testLong()
106 .containsExactly("LONG_LITERAL(0xffff_ffff_ffff_ffffL)", "EOF"); in testLong()
108 .containsExactly("LONG_LITERAL(017_7777_7777_7777_7777_7777L)", "EOF"); in testLong()
114 "EOF"); in testLong()
119 assertThat(lex("1D")).containsExactly("DOUBLE_LITERAL(1D)", "EOF"); in testDoubleLiteral()
120 assertThat(lex("123d")).containsExactly("DOUBLE_LITERAL(123d)", "EOF"); in testDoubleLiteral()
122 .containsExactly("DOUBLE_LITERAL(1.7976931348623157e308)", "EOF"); in testDoubleLiteral()
123 assertThat(lex("4.9e-324")).containsExactly("DOUBLE_LITERAL(4.9e-324)", "EOF"); in testDoubleLiteral()
128 assertThat(lex("1F")).containsExactly("FLOAT_LITERAL(1F)", "EOF"); in testFloatLiteral()
129 assertThat(lex("123f")).containsExactly("FLOAT_LITERAL(123f)", "EOF"); in testFloatLiteral()
130 assertThat(lex("3.4028235e38f")).containsExactly("FLOAT_LITERAL(3.4028235e38f)", "EOF"); in testFloatLiteral()
131 assertThat(lex("1.40e-45f")).containsExactly("FLOAT_LITERAL(1.40e-45f)", "EOF"); in testFloatLiteral()
136 assertThat(lex("a//comment\nb //comment")).containsExactly("IDENT(a)", "IDENT(b)", "EOF"); in testComment()
138 .containsExactly("IDENT(a)", "IDENT(b)", "IDENT(c)", "EOF"); in testComment()
144 .containsExactly("STRING_LITERAL(asd)", "STRING_LITERAL(\\n)", "EOF"); in testStringLiteral()
150 .containsExactly("CHAR_LITERAL(a)", "CHAR_LITERAL(\\t)", "CHAR_LITERAL(\\r)", "EOF"); in charLiteral()
156 .containsExactly("LPAREN", "INT", "RPAREN", "MINUS", "INT_LITERAL(1)", "EOF"); in negativeInt()
163 "IMPORT", "IDENT(com)", "DOT", "IDENT(google)", "DOT", "IDENT(Foo)", "SEMI", "EOF"); in importStmt()
181 "EOF"); in annotation()
196 "OREQ", "XOREQ", "MODEQ", "LTLTE", "GTGTE", "GTGTGTE", "EOF"); in operators()
273 "EOF"); in keywords()
379 } while (token != Token.EOF); in lex()
412 assertThat(lex(input)).containsExactly("STRING_LITERAL(hellohellohello)", "EOF"); in textBlockNewlineEscapes()
415 // Check for EOF when skipping over escapes in text blocks
420 assertThat(lexer.next()).isEqualTo(Token.EOF); in textBlockEOF()