aboutsummaryrefslogtreecommitdiff
path: root/tests/data/lexer
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-10 20:33:29 +0100
committerAleksey Kladov <[email protected]>2018-08-10 20:33:29 +0100
commit7c67612b8a894187fa3b64725531a5459f9211bf (patch)
tree9e2a536efa0c880d921fd8d4d74423afc9451fd4 /tests/data/lexer
parent26262aaf05983c5b7f41cc438e287523268fe1eb (diff)
organizize
Diffstat (limited to 'tests/data/lexer')
-rw-r--r--tests/data/lexer/00012_block_comment.rs4
-rw-r--r--tests/data/lexer/00012_block_comment.txt7
-rw-r--r--tests/data/lexer/0001_hello.rs1
-rw-r--r--tests/data/lexer/0001_hello.txt3
-rw-r--r--tests/data/lexer/0002_whitespace.rs4
-rw-r--r--tests/data/lexer/0002_whitespace.txt12
-rw-r--r--tests/data/lexer/0003_ident.rs1
-rw-r--r--tests/data/lexer/0003_ident.txt14
-rw-r--r--tests/data/lexer/0004_numbers.rs9
-rw-r--r--tests/data/lexer/0004_numbers.txt67
-rw-r--r--tests/data/lexer/0005_symbols.rs6
-rw-r--r--tests/data/lexer/0005_symbols.txt68
-rw-r--r--tests/data/lexer/0006_chars.rs1
-rw-r--r--tests/data/lexer/0006_chars.txt6
-rw-r--r--tests/data/lexer/0007_lifetimes.rs1
-rw-r--r--tests/data/lexer/0007_lifetimes.txt8
-rw-r--r--tests/data/lexer/0008_byte_strings.rs2
-rw-r--r--tests/data/lexer/0008_byte_strings.txt14
-rw-r--r--tests/data/lexer/0009_strings.rs1
-rw-r--r--tests/data/lexer/0009_strings.txt4
-rw-r--r--tests/data/lexer/0010_comments.rs3
-rw-r--r--tests/data/lexer/0010_comments.txt6
-rw-r--r--tests/data/lexer/0011_keywords.rs3
-rw-r--r--tests/data/lexer/0011_keywords.txt62
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 @@
1COMMENT 5 "/* */"
2WHITESPACE 1 "\n"
3COMMENT 4 "/**/"
4WHITESPACE 1 "\n"
5COMMENT 11 "/* /* */ */"
6WHITESPACE 1 "\n"
7COMMENT 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 @@
1hello 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 @@
1IDENT 5 "hello"
2WHITESPACE 1 " "
3IDENT 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 @@
1a b c
2d
3
4e 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 @@
1IDENT 1 "a"
2WHITESPACE 1 " "
3IDENT 1 "b"
4WHITESPACE 2 " "
5IDENT 1 "c"
6WHITESPACE 1 "\n"
7IDENT 1 "d"
8WHITESPACE 2 "\n\n"
9IDENT 1 "e"
10WHITESPACE 1 "\t"
11IDENT 1 "f"
12WHITESPACE 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 @@
1foo 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 @@
1IDENT 3 "foo"
2WHITESPACE 1 " "
3IDENT 4 "foo_"
4WHITESPACE 1 " "
5IDENT 4 "_foo"
6WHITESPACE 1 " "
7UNDERSCORE 1 "_"
8WHITESPACE 1 " "
9IDENT 2 "__"
10WHITESPACE 1 " "
11IDENT 1 "x"
12WHITESPACE 1 " "
13IDENT 12 "привет"
14WHITESPACE 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 @@
10 0b 0o 0x 00 0_ 0. 0e 0E 0z
201790 0b1790 0o1790 0x1790aAbBcCdDeEfF 001279 0_1279 0.1279 0e1279 0E1279
30..2
40.foo()
50e+1
60.e+1
70.0E-2
80___0.10000____0000e+111__
91i64 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 @@
1INT_NUMBER 1 "0"
2WHITESPACE 1 " "
3INT_NUMBER 2 "0b"
4WHITESPACE 1 " "
5INT_NUMBER 2 "0o"
6WHITESPACE 1 " "
7INT_NUMBER 2 "0x"
8WHITESPACE 1 " "
9INT_NUMBER 2 "00"
10WHITESPACE 1 " "
11INT_NUMBER 2 "0_"
12WHITESPACE 1 " "
13FLOAT_NUMBER 2 "0."
14WHITESPACE 1 " "
15INT_NUMBER 2 "0e"
16WHITESPACE 1 " "
17INT_NUMBER 2 "0E"
18WHITESPACE 1 " "
19INT_NUMBER 2 "0z"
20WHITESPACE 1 "\n"
21INT_NUMBER 5 "01790"
22WHITESPACE 1 " "
23INT_NUMBER 6 "0b1790"
24WHITESPACE 1 " "
25INT_NUMBER 6 "0o1790"
26WHITESPACE 1 " "
27INT_NUMBER 18 "0x1790aAbBcCdDeEfF"
28WHITESPACE 1 " "
29INT_NUMBER 6 "001279"
30WHITESPACE 1 " "
31INT_NUMBER 6 "0_1279"
32WHITESPACE 1 " "
33FLOAT_NUMBER 6 "0.1279"
34WHITESPACE 1 " "
35INT_NUMBER 6 "0e1279"
36WHITESPACE 1 " "
37INT_NUMBER 6 "0E1279"
38WHITESPACE 1 "\n"
39INT_NUMBER 1 "0"
40DOTDOT 2 ".."
41INT_NUMBER 1 "2"
42WHITESPACE 1 "\n"
43INT_NUMBER 1 "0"
44DOT 1 "."
45IDENT 3 "foo"
46L_PAREN 1 "("
47R_PAREN 1 ")"
48WHITESPACE 1 "\n"
49INT_NUMBER 2 "0e"
50PLUS 1 "+"
51INT_NUMBER 1 "1"
52WHITESPACE 1 "\n"
53INT_NUMBER 1 "0"
54DOT 1 "."
55IDENT 1 "e"
56PLUS 1 "+"
57INT_NUMBER 1 "1"
58WHITESPACE 1 "\n"
59FLOAT_NUMBER 6 "0.0E-2"
60WHITESPACE 1 "\n"
61FLOAT_NUMBER 26 "0___0.10000____0000e+111__"
62WHITESPACE 1 "\n"
63INT_NUMBER 4 "1i64"
64WHITESPACE 1 " "
65FLOAT_NUMBER 7 "92.0f32"
66WHITESPACE 1 " "
67INT_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 @@
1SEMI 1 ";"
2WHITESPACE 1 " "
3COMMA 1 ","
4WHITESPACE 1 " "
5L_PAREN 1 "("
6WHITESPACE 1 " "
7R_PAREN 1 ")"
8WHITESPACE 1 " "
9L_CURLY 1 "{"
10WHITESPACE 1 " "
11R_CURLY 1 "}"
12WHITESPACE 1 " "
13L_BRACK 1 "["
14WHITESPACE 1 " "
15R_BRACK 1 "]"
16WHITESPACE 1 " "
17L_ANGLE 1 "<"
18WHITESPACE 1 " "
19R_ANGLE 1 ">"
20WHITESPACE 1 " "
21AT 1 "@"
22WHITESPACE 1 " "
23POUND 1 "#"
24WHITESPACE 1 " "
25TILDE 1 "~"
26WHITESPACE 1 " "
27QUESTION 1 "?"
28WHITESPACE 1 " "
29DOLLAR 1 "$"
30WHITESPACE 1 " "
31AMP 1 "&"
32WHITESPACE 1 " "
33PIPE 1 "|"
34WHITESPACE 1 " "
35PLUS 1 "+"
36WHITESPACE 1 " "
37STAR 1 "*"
38WHITESPACE 1 " "
39SLASH 1 "/"
40WHITESPACE 1 " "
41CARET 1 "^"
42WHITESPACE 1 " "
43PERCENT 1 "%"
44WHITESPACE 1 "\n"
45DOT 1 "."
46WHITESPACE 1 " "
47DOTDOT 2 ".."
48WHITESPACE 1 " "
49DOTDOTDOT 3 "..."
50WHITESPACE 1 " "
51DOTDOTEQ 3 "..="
52WHITESPACE 1 "\n"
53COLON 1 ":"
54WHITESPACE 1 " "
55COLONCOLON 2 "::"
56WHITESPACE 1 "\n"
57EQ 1 "="
58WHITESPACE 1 " "
59FAT_ARROW 2 "=>"
60WHITESPACE 1 "\n"
61EXCL 1 "!"
62WHITESPACE 1 " "
63NEQ 2 "!="
64WHITESPACE 1 "\n"
65MINUS 1 "-"
66WHITESPACE 1 " "
67THIN_ARROW 2 "->"
68WHITESPACE 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 @@
1CHAR 3 "\'x\'"
2WHITESPACE 1 " "
3CHAR 3 "\' \'"
4WHITESPACE 1 " "
5CHAR 3 "\'0\'"
6WHITESPACE 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 @@
1LIFETIME 2 "\'a"
2WHITESPACE 1 " "
3LIFETIME 4 "\'foo"
4WHITESPACE 1 " "
5LIFETIME 12 "\'foo_bar_baz"
6WHITESPACE 1 " "
7LIFETIME 2 "\'_"
8WHITESPACE 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 @@
1b'' b'x' b"foo" br""
2b''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 @@
1BYTE 3 "b\'\'"
2WHITESPACE 1 " "
3BYTE 4 "b\'x\'"
4WHITESPACE 1 " "
5BYTE_STRING 6 "b\"foo\""
6WHITESPACE 1 " "
7RAW_BYTE_STRING 4 "br\"\""
8WHITESPACE 1 "\n"
9BYTE 6 "b\'\'suf"
10WHITESPACE 1 " "
11BYTE_STRING 5 "b\"\"ix"
12WHITESPACE 1 " "
13RAW_BYTE_STRING 6 "br\"\"br"
14WHITESPACE 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 @@
1STRING 7 "\"hello\""
2WHITESPACE 1 " "
3RAW_STRING 8 "r\"world\""
4WHITESPACE 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 @@
1SHEBANG 19 "#!/usr/bin/env bash"
2WHITESPACE 1 "\n"
3COMMENT 8 "// hello"
4WHITESPACE 1 "\n"
5COMMENT 9 "//! World"
6WHITESPACE 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 @@
1fn use struct trait enum impl true false as extern crate
2mod pub self super in where for loop while if match const
3static 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 @@
1FN_KW 2 "fn"
2WHITESPACE 1 " "
3USE_KW 3 "use"
4WHITESPACE 1 " "
5STRUCT_KW 6 "struct"
6WHITESPACE 1 " "
7TRAIT_KW 5 "trait"
8WHITESPACE 1 " "
9ENUM_KW 4 "enum"
10WHITESPACE 1 " "
11IMPL_KW 4 "impl"
12WHITESPACE 1 " "
13TRUE_KW 4 "true"
14WHITESPACE 1 " "
15FALSE_KW 5 "false"
16WHITESPACE 1 " "
17AS_KW 2 "as"
18WHITESPACE 1 " "
19EXTERN_KW 6 "extern"
20WHITESPACE 1 " "
21CRATE_KW 5 "crate"
22WHITESPACE 1 "\n"
23MOD_KW 3 "mod"
24WHITESPACE 1 " "
25PUB_KW 3 "pub"
26WHITESPACE 1 " "
27SELF_KW 4 "self"
28WHITESPACE 1 " "
29SUPER_KW 5 "super"
30WHITESPACE 1 " "
31IN_KW 2 "in"
32WHITESPACE 1 " "
33WHERE_KW 5 "where"
34WHITESPACE 1 " "
35FOR_KW 3 "for"
36WHITESPACE 1 " "
37LOOP_KW 4 "loop"
38WHITESPACE 1 " "
39WHILE_KW 5 "while"
40WHITESPACE 1 " "
41IF_KW 2 "if"
42WHITESPACE 1 " "
43MATCH_KW 5 "match"
44WHITESPACE 1 " "
45CONST_KW 5 "const"
46WHITESPACE 1 "\n"
47STATIC_KW 6 "static"
48WHITESPACE 1 " "
49MUT_KW 3 "mut"
50WHITESPACE 1 " "
51TYPE_KW 4 "type"
52WHITESPACE 1 " "
53REF_KW 3 "ref"
54WHITESPACE 1 " "
55LET_KW 3 "let"
56WHITESPACE 1 " "
57ELSE_KW 4 "else"
58WHITESPACE 1 " "
59MOVE_KW 4 "move"
60WHITESPACE 1 " "
61RETURN_KW 6 "return"
62WHITESPACE 1 "\n"