diff options
Diffstat (limited to 'tests/data/lexer')
24 files changed, 0 insertions, 307 deletions
diff --git a/tests/data/lexer/00012_block_comment.rs b/tests/data/lexer/00012_block_comment.rs deleted file mode 100644 index 708aac197..000000000 --- a/tests/data/lexer/00012_block_comment.rs +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | /* */ | ||
2 | /**/ | ||
3 | /* /* */ */ | ||
4 | /* | ||
diff --git a/tests/data/lexer/00012_block_comment.txt b/tests/data/lexer/00012_block_comment.txt deleted file mode 100644 index 9958b2518..000000000 --- a/tests/data/lexer/00012_block_comment.txt +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | COMMENT 5 "/* */" | ||
2 | WHITESPACE 1 "\n" | ||
3 | COMMENT 4 "/**/" | ||
4 | WHITESPACE 1 "\n" | ||
5 | COMMENT 11 "/* /* */ */" | ||
6 | WHITESPACE 1 "\n" | ||
7 | COMMENT 3 "/*\n" | ||
diff --git a/tests/data/lexer/0001_hello.rs b/tests/data/lexer/0001_hello.rs deleted file mode 100644 index 95d09f2b1..000000000 --- a/tests/data/lexer/0001_hello.rs +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | hello world \ No newline at end of file | ||
diff --git a/tests/data/lexer/0001_hello.txt b/tests/data/lexer/0001_hello.txt deleted file mode 100644 index 27a5940a9..000000000 --- a/tests/data/lexer/0001_hello.txt +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | IDENT 5 "hello" | ||
2 | WHITESPACE 1 " " | ||
3 | IDENT 5 "world" | ||
diff --git a/tests/data/lexer/0002_whitespace.rs b/tests/data/lexer/0002_whitespace.rs deleted file mode 100644 index 08fce1418..000000000 --- a/tests/data/lexer/0002_whitespace.rs +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | a b c | ||
2 | d | ||
3 | |||
4 | e f | ||
diff --git a/tests/data/lexer/0002_whitespace.txt b/tests/data/lexer/0002_whitespace.txt deleted file mode 100644 index 01d260918..000000000 --- a/tests/data/lexer/0002_whitespace.txt +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | IDENT 1 "a" | ||
2 | WHITESPACE 1 " " | ||
3 | IDENT 1 "b" | ||
4 | WHITESPACE 2 " " | ||
5 | IDENT 1 "c" | ||
6 | WHITESPACE 1 "\n" | ||
7 | IDENT 1 "d" | ||
8 | WHITESPACE 2 "\n\n" | ||
9 | IDENT 1 "e" | ||
10 | WHITESPACE 1 "\t" | ||
11 | IDENT 1 "f" | ||
12 | WHITESPACE 1 "\n" | ||
diff --git a/tests/data/lexer/0003_ident.rs b/tests/data/lexer/0003_ident.rs deleted file mode 100644 index c05c9c009..000000000 --- a/tests/data/lexer/0003_ident.rs +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | foo foo_ _foo _ __ x привет | ||
diff --git a/tests/data/lexer/0003_ident.txt b/tests/data/lexer/0003_ident.txt deleted file mode 100644 index 4a0d5c053..000000000 --- a/tests/data/lexer/0003_ident.txt +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | IDENT 3 "foo" | ||
2 | WHITESPACE 1 " " | ||
3 | IDENT 4 "foo_" | ||
4 | WHITESPACE 1 " " | ||
5 | IDENT 4 "_foo" | ||
6 | WHITESPACE 1 " " | ||
7 | UNDERSCORE 1 "_" | ||
8 | WHITESPACE 1 " " | ||
9 | IDENT 2 "__" | ||
10 | WHITESPACE 1 " " | ||
11 | IDENT 1 "x" | ||
12 | WHITESPACE 1 " " | ||
13 | IDENT 12 "привет" | ||
14 | WHITESPACE 1 "\n" | ||
diff --git a/tests/data/lexer/0004_numbers.rs b/tests/data/lexer/0004_numbers.rs deleted file mode 100644 index dc974b553..000000000 --- a/tests/data/lexer/0004_numbers.rs +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | 0 0b 0o 0x 00 0_ 0. 0e 0E 0z | ||
2 | 01790 0b1790 0o1790 0x1790aAbBcCdDeEfF 001279 0_1279 0.1279 0e1279 0E1279 | ||
3 | 0..2 | ||
4 | 0.foo() | ||
5 | 0e+1 | ||
6 | 0.e+1 | ||
7 | 0.0E-2 | ||
8 | 0___0.10000____0000e+111__ | ||
9 | 1i64 92.0f32 11__s \ No newline at end of file | ||
diff --git a/tests/data/lexer/0004_numbers.txt b/tests/data/lexer/0004_numbers.txt deleted file mode 100644 index 4b5fd9f71..000000000 --- a/tests/data/lexer/0004_numbers.txt +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | INT_NUMBER 1 "0" | ||
2 | WHITESPACE 1 " " | ||
3 | INT_NUMBER 2 "0b" | ||
4 | WHITESPACE 1 " " | ||
5 | INT_NUMBER 2 "0o" | ||
6 | WHITESPACE 1 " " | ||
7 | INT_NUMBER 2 "0x" | ||
8 | WHITESPACE 1 " " | ||
9 | INT_NUMBER 2 "00" | ||
10 | WHITESPACE 1 " " | ||
11 | INT_NUMBER 2 "0_" | ||
12 | WHITESPACE 1 " " | ||
13 | FLOAT_NUMBER 2 "0." | ||
14 | WHITESPACE 1 " " | ||
15 | INT_NUMBER 2 "0e" | ||
16 | WHITESPACE 1 " " | ||
17 | INT_NUMBER 2 "0E" | ||
18 | WHITESPACE 1 " " | ||
19 | INT_NUMBER 2 "0z" | ||
20 | WHITESPACE 1 "\n" | ||
21 | INT_NUMBER 5 "01790" | ||
22 | WHITESPACE 1 " " | ||
23 | INT_NUMBER 6 "0b1790" | ||
24 | WHITESPACE 1 " " | ||
25 | INT_NUMBER 6 "0o1790" | ||
26 | WHITESPACE 1 " " | ||
27 | INT_NUMBER 18 "0x1790aAbBcCdDeEfF" | ||
28 | WHITESPACE 1 " " | ||
29 | INT_NUMBER 6 "001279" | ||
30 | WHITESPACE 1 " " | ||
31 | INT_NUMBER 6 "0_1279" | ||
32 | WHITESPACE 1 " " | ||
33 | FLOAT_NUMBER 6 "0.1279" | ||
34 | WHITESPACE 1 " " | ||
35 | INT_NUMBER 6 "0e1279" | ||
36 | WHITESPACE 1 " " | ||
37 | INT_NUMBER 6 "0E1279" | ||
38 | WHITESPACE 1 "\n" | ||
39 | INT_NUMBER 1 "0" | ||
40 | DOTDOT 2 ".." | ||
41 | INT_NUMBER 1 "2" | ||
42 | WHITESPACE 1 "\n" | ||
43 | INT_NUMBER 1 "0" | ||
44 | DOT 1 "." | ||
45 | IDENT 3 "foo" | ||
46 | L_PAREN 1 "(" | ||
47 | R_PAREN 1 ")" | ||
48 | WHITESPACE 1 "\n" | ||
49 | INT_NUMBER 2 "0e" | ||
50 | PLUS 1 "+" | ||
51 | INT_NUMBER 1 "1" | ||
52 | WHITESPACE 1 "\n" | ||
53 | INT_NUMBER 1 "0" | ||
54 | DOT 1 "." | ||
55 | IDENT 1 "e" | ||
56 | PLUS 1 "+" | ||
57 | INT_NUMBER 1 "1" | ||
58 | WHITESPACE 1 "\n" | ||
59 | FLOAT_NUMBER 6 "0.0E-2" | ||
60 | WHITESPACE 1 "\n" | ||
61 | FLOAT_NUMBER 26 "0___0.10000____0000e+111__" | ||
62 | WHITESPACE 1 "\n" | ||
63 | INT_NUMBER 4 "1i64" | ||
64 | WHITESPACE 1 " " | ||
65 | FLOAT_NUMBER 7 "92.0f32" | ||
66 | WHITESPACE 1 " " | ||
67 | INT_NUMBER 5 "11__s" | ||
diff --git a/tests/data/lexer/0005_symbols.rs b/tests/data/lexer/0005_symbols.rs deleted file mode 100644 index 487569b5a..000000000 --- a/tests/data/lexer/0005_symbols.rs +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | ; , ( ) { } [ ] < > @ # ~ ? $ & | + * / ^ % | ||
2 | . .. ... ..= | ||
3 | : :: | ||
4 | = => | ||
5 | ! != | ||
6 | - -> | ||
diff --git a/tests/data/lexer/0005_symbols.txt b/tests/data/lexer/0005_symbols.txt deleted file mode 100644 index a6bc83a6f..000000000 --- a/tests/data/lexer/0005_symbols.txt +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | SEMI 1 ";" | ||
2 | WHITESPACE 1 " " | ||
3 | COMMA 1 "," | ||
4 | WHITESPACE 1 " " | ||
5 | L_PAREN 1 "(" | ||
6 | WHITESPACE 1 " " | ||
7 | R_PAREN 1 ")" | ||
8 | WHITESPACE 1 " " | ||
9 | L_CURLY 1 "{" | ||
10 | WHITESPACE 1 " " | ||
11 | R_CURLY 1 "}" | ||
12 | WHITESPACE 1 " " | ||
13 | L_BRACK 1 "[" | ||
14 | WHITESPACE 1 " " | ||
15 | R_BRACK 1 "]" | ||
16 | WHITESPACE 1 " " | ||
17 | L_ANGLE 1 "<" | ||
18 | WHITESPACE 1 " " | ||
19 | R_ANGLE 1 ">" | ||
20 | WHITESPACE 1 " " | ||
21 | AT 1 "@" | ||
22 | WHITESPACE 1 " " | ||
23 | POUND 1 "#" | ||
24 | WHITESPACE 1 " " | ||
25 | TILDE 1 "~" | ||
26 | WHITESPACE 1 " " | ||
27 | QUESTION 1 "?" | ||
28 | WHITESPACE 1 " " | ||
29 | DOLLAR 1 "$" | ||
30 | WHITESPACE 1 " " | ||
31 | AMP 1 "&" | ||
32 | WHITESPACE 1 " " | ||
33 | PIPE 1 "|" | ||
34 | WHITESPACE 1 " " | ||
35 | PLUS 1 "+" | ||
36 | WHITESPACE 1 " " | ||
37 | STAR 1 "*" | ||
38 | WHITESPACE 1 " " | ||
39 | SLASH 1 "/" | ||
40 | WHITESPACE 1 " " | ||
41 | CARET 1 "^" | ||
42 | WHITESPACE 1 " " | ||
43 | PERCENT 1 "%" | ||
44 | WHITESPACE 1 "\n" | ||
45 | DOT 1 "." | ||
46 | WHITESPACE 1 " " | ||
47 | DOTDOT 2 ".." | ||
48 | WHITESPACE 1 " " | ||
49 | DOTDOTDOT 3 "..." | ||
50 | WHITESPACE 1 " " | ||
51 | DOTDOTEQ 3 "..=" | ||
52 | WHITESPACE 1 "\n" | ||
53 | COLON 1 ":" | ||
54 | WHITESPACE 1 " " | ||
55 | COLONCOLON 2 "::" | ||
56 | WHITESPACE 1 "\n" | ||
57 | EQ 1 "=" | ||
58 | WHITESPACE 1 " " | ||
59 | FAT_ARROW 2 "=>" | ||
60 | WHITESPACE 1 "\n" | ||
61 | EXCL 1 "!" | ||
62 | WHITESPACE 1 " " | ||
63 | NEQ 2 "!=" | ||
64 | WHITESPACE 1 "\n" | ||
65 | MINUS 1 "-" | ||
66 | WHITESPACE 1 " " | ||
67 | THIN_ARROW 2 "->" | ||
68 | WHITESPACE 1 "\n" | ||
diff --git a/tests/data/lexer/0006_chars.rs b/tests/data/lexer/0006_chars.rs deleted file mode 100644 index 03598d908..000000000 --- a/tests/data/lexer/0006_chars.rs +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | 'x' ' ' '0' | ||
diff --git a/tests/data/lexer/0006_chars.txt b/tests/data/lexer/0006_chars.txt deleted file mode 100644 index ecaf22355..000000000 --- a/tests/data/lexer/0006_chars.txt +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | CHAR 3 "\'x\'" | ||
2 | WHITESPACE 1 " " | ||
3 | CHAR 3 "\' \'" | ||
4 | WHITESPACE 1 " " | ||
5 | CHAR 3 "\'0\'" | ||
6 | WHITESPACE 1 "\n" | ||
diff --git a/tests/data/lexer/0007_lifetimes.rs b/tests/data/lexer/0007_lifetimes.rs deleted file mode 100644 index b764f1dce..000000000 --- a/tests/data/lexer/0007_lifetimes.rs +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | 'a 'foo 'foo_bar_baz '_ | ||
diff --git a/tests/data/lexer/0007_lifetimes.txt b/tests/data/lexer/0007_lifetimes.txt deleted file mode 100644 index 005c29100..000000000 --- a/tests/data/lexer/0007_lifetimes.txt +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | LIFETIME 2 "\'a" | ||
2 | WHITESPACE 1 " " | ||
3 | LIFETIME 4 "\'foo" | ||
4 | WHITESPACE 1 " " | ||
5 | LIFETIME 12 "\'foo_bar_baz" | ||
6 | WHITESPACE 1 " " | ||
7 | LIFETIME 2 "\'_" | ||
8 | WHITESPACE 1 "\n" | ||
diff --git a/tests/data/lexer/0008_byte_strings.rs b/tests/data/lexer/0008_byte_strings.rs deleted file mode 100644 index 9dd1570de..000000000 --- a/tests/data/lexer/0008_byte_strings.rs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | b'' b'x' b"foo" br"" | ||
2 | b''suf b""ix br""br | ||
diff --git a/tests/data/lexer/0008_byte_strings.txt b/tests/data/lexer/0008_byte_strings.txt deleted file mode 100644 index ed8cd4bab..000000000 --- a/tests/data/lexer/0008_byte_strings.txt +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | BYTE 3 "b\'\'" | ||
2 | WHITESPACE 1 " " | ||
3 | BYTE 4 "b\'x\'" | ||
4 | WHITESPACE 1 " " | ||
5 | BYTE_STRING 6 "b\"foo\"" | ||
6 | WHITESPACE 1 " " | ||
7 | RAW_BYTE_STRING 4 "br\"\"" | ||
8 | WHITESPACE 1 "\n" | ||
9 | BYTE 6 "b\'\'suf" | ||
10 | WHITESPACE 1 " " | ||
11 | BYTE_STRING 5 "b\"\"ix" | ||
12 | WHITESPACE 1 " " | ||
13 | RAW_BYTE_STRING 6 "br\"\"br" | ||
14 | WHITESPACE 1 "\n" | ||
diff --git a/tests/data/lexer/0009_strings.rs b/tests/data/lexer/0009_strings.rs deleted file mode 100644 index 7b7faa5d8..000000000 --- a/tests/data/lexer/0009_strings.rs +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | "hello" r"world" | ||
diff --git a/tests/data/lexer/0009_strings.txt b/tests/data/lexer/0009_strings.txt deleted file mode 100644 index 7fb6b7b36..000000000 --- a/tests/data/lexer/0009_strings.txt +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | STRING 7 "\"hello\"" | ||
2 | WHITESPACE 1 " " | ||
3 | RAW_STRING 8 "r\"world\"" | ||
4 | WHITESPACE 1 "\n" | ||
diff --git a/tests/data/lexer/0010_comments.rs b/tests/data/lexer/0010_comments.rs deleted file mode 100644 index 71bdd1f9c..000000000 --- a/tests/data/lexer/0010_comments.rs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | // hello | ||
3 | //! World | ||
diff --git a/tests/data/lexer/0010_comments.txt b/tests/data/lexer/0010_comments.txt deleted file mode 100644 index 3c997de3f..000000000 --- a/tests/data/lexer/0010_comments.txt +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | SHEBANG 19 "#!/usr/bin/env bash" | ||
2 | WHITESPACE 1 "\n" | ||
3 | COMMENT 8 "// hello" | ||
4 | WHITESPACE 1 "\n" | ||
5 | COMMENT 9 "//! World" | ||
6 | WHITESPACE 1 "\n" | ||
diff --git a/tests/data/lexer/0011_keywords.rs b/tests/data/lexer/0011_keywords.rs deleted file mode 100644 index e6bf64d4d..000000000 --- a/tests/data/lexer/0011_keywords.rs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | fn use struct trait enum impl true false as extern crate | ||
2 | mod pub self super in where for loop while if match const | ||
3 | static mut type ref let else move return | ||
diff --git a/tests/data/lexer/0011_keywords.txt b/tests/data/lexer/0011_keywords.txt deleted file mode 100644 index d6a1abe8a..000000000 --- a/tests/data/lexer/0011_keywords.txt +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | FN_KW 2 "fn" | ||
2 | WHITESPACE 1 " " | ||
3 | USE_KW 3 "use" | ||
4 | WHITESPACE 1 " " | ||
5 | STRUCT_KW 6 "struct" | ||
6 | WHITESPACE 1 " " | ||
7 | TRAIT_KW 5 "trait" | ||
8 | WHITESPACE 1 " " | ||
9 | ENUM_KW 4 "enum" | ||
10 | WHITESPACE 1 " " | ||
11 | IMPL_KW 4 "impl" | ||
12 | WHITESPACE 1 " " | ||
13 | TRUE_KW 4 "true" | ||
14 | WHITESPACE 1 " " | ||
15 | FALSE_KW 5 "false" | ||
16 | WHITESPACE 1 " " | ||
17 | AS_KW 2 "as" | ||
18 | WHITESPACE 1 " " | ||
19 | EXTERN_KW 6 "extern" | ||
20 | WHITESPACE 1 " " | ||
21 | CRATE_KW 5 "crate" | ||
22 | WHITESPACE 1 "\n" | ||
23 | MOD_KW 3 "mod" | ||
24 | WHITESPACE 1 " " | ||
25 | PUB_KW 3 "pub" | ||
26 | WHITESPACE 1 " " | ||
27 | SELF_KW 4 "self" | ||
28 | WHITESPACE 1 " " | ||
29 | SUPER_KW 5 "super" | ||
30 | WHITESPACE 1 " " | ||
31 | IN_KW 2 "in" | ||
32 | WHITESPACE 1 " " | ||
33 | WHERE_KW 5 "where" | ||
34 | WHITESPACE 1 " " | ||
35 | FOR_KW 3 "for" | ||
36 | WHITESPACE 1 " " | ||
37 | LOOP_KW 4 "loop" | ||
38 | WHITESPACE 1 " " | ||
39 | WHILE_KW 5 "while" | ||
40 | WHITESPACE 1 " " | ||
41 | IF_KW 2 "if" | ||
42 | WHITESPACE 1 " " | ||
43 | MATCH_KW 5 "match" | ||
44 | WHITESPACE 1 " " | ||
45 | CONST_KW 5 "const" | ||
46 | WHITESPACE 1 "\n" | ||
47 | STATIC_KW 6 "static" | ||
48 | WHITESPACE 1 " " | ||
49 | MUT_KW 3 "mut" | ||
50 | WHITESPACE 1 " " | ||
51 | TYPE_KW 4 "type" | ||
52 | WHITESPACE 1 " " | ||
53 | REF_KW 3 "ref" | ||
54 | WHITESPACE 1 " " | ||
55 | LET_KW 3 "let" | ||
56 | WHITESPACE 1 " " | ||
57 | ELSE_KW 4 "else" | ||
58 | WHITESPACE 1 " " | ||
59 | MOVE_KW 4 "move" | ||
60 | WHITESPACE 1 " " | ||
61 | RETURN_KW 6 "return" | ||
62 | WHITESPACE 1 "\n" | ||