diff options
author | Aleksey Kladov <[email protected]> | 2017-12-30 12:22:40 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2017-12-30 12:23:38 +0000 |
commit | ddc637c16120fb352183698f635fc93a68580f7b (patch) | |
tree | 288f1497551f2667af693157f2451be40c25d697 /tests | |
parent | 8103772a10f00378c4dcdd09f9af310c23146933 (diff) |
Lexer: start numbers
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/lexer/0004_number.rs | 7 | ||||
-rw-r--r-- | tests/data/lexer/0004_number.txt | 62 |
2 files changed, 69 insertions, 0 deletions
diff --git a/tests/data/lexer/0004_number.rs b/tests/data/lexer/0004_number.rs new file mode 100644 index 000000000..af53ff2cd --- /dev/null +++ b/tests/data/lexer/0004_number.rs | |||
@@ -0,0 +1,7 @@ | |||
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 | ||
diff --git a/tests/data/lexer/0004_number.txt b/tests/data/lexer/0004_number.txt new file mode 100644 index 000000000..e9ad8410d --- /dev/null +++ b/tests/data/lexer/0004_number.txt | |||
@@ -0,0 +1,62 @@ | |||
1 | INT_NUMBER 1 | ||
2 | WHITESPACE 1 | ||
3 | INT_NUMBER 2 | ||
4 | WHITESPACE 1 | ||
5 | INT_NUMBER 2 | ||
6 | WHITESPACE 1 | ||
7 | INT_NUMBER 2 | ||
8 | WHITESPACE 1 | ||
9 | INT_NUMBER 2 | ||
10 | WHITESPACE 1 | ||
11 | INT_NUMBER 2 | ||
12 | WHITESPACE 1 | ||
13 | FLOAT_NUMBER 2 | ||
14 | WHITESPACE 1 | ||
15 | INT_NUMBER 2 | ||
16 | WHITESPACE 1 | ||
17 | INT_NUMBER 2 | ||
18 | WHITESPACE 1 | ||
19 | INT_NUMBER 1 | ||
20 | IDENT 1 | ||
21 | WHITESPACE 1 | ||
22 | INT_NUMBER 5 | ||
23 | WHITESPACE 1 | ||
24 | INT_NUMBER 6 | ||
25 | WHITESPACE 1 | ||
26 | INT_NUMBER 6 | ||
27 | WHITESPACE 1 | ||
28 | INT_NUMBER 18 | ||
29 | WHITESPACE 1 | ||
30 | INT_NUMBER 6 | ||
31 | WHITESPACE 1 | ||
32 | INT_NUMBER 6 | ||
33 | WHITESPACE 1 | ||
34 | FLOAT_NUMBER 6 | ||
35 | WHITESPACE 1 | ||
36 | INT_NUMBER 6 | ||
37 | WHITESPACE 1 | ||
38 | INT_NUMBER 6 | ||
39 | WHITESPACE 1 | ||
40 | INT_NUMBER 1 | ||
41 | ERROR 1 | ||
42 | ERROR 1 | ||
43 | INT_NUMBER 1 | ||
44 | WHITESPACE 1 | ||
45 | INT_NUMBER 1 | ||
46 | ERROR 1 | ||
47 | IDENT 3 | ||
48 | ERROR 1 | ||
49 | ERROR 1 | ||
50 | WHITESPACE 1 | ||
51 | INT_NUMBER 2 | ||
52 | ERROR 1 | ||
53 | INT_NUMBER 1 | ||
54 | WHITESPACE 1 | ||
55 | INT_NUMBER 1 | ||
56 | ERROR 1 | ||
57 | IDENT 1 | ||
58 | ERROR 1 | ||
59 | INT_NUMBER 1 | ||
60 | WHITESPACE 1 | ||
61 | FLOAT_NUMBER 6 | ||
62 | WHITESPACE 1 | ||