From cb362626f326a565aca34c1a11c95dcb7152b798 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 1 Jan 2018 18:58:46 +0300 Subject: Parser: guess what? Groundwork! --- tests/data/lexer/0011_keywords.rs | 1 + tests/data/lexer/0011_keywords.txt | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/data/lexer/0011_keywords.rs create mode 100644 tests/data/lexer/0011_keywords.txt (limited to 'tests/data/lexer') diff --git a/tests/data/lexer/0011_keywords.rs b/tests/data/lexer/0011_keywords.rs new file mode 100644 index 000000000..aa89d70c5 --- /dev/null +++ b/tests/data/lexer/0011_keywords.rs @@ -0,0 +1 @@ +fn use struct trait enum impl diff --git a/tests/data/lexer/0011_keywords.txt b/tests/data/lexer/0011_keywords.txt new file mode 100644 index 000000000..d90047d1e --- /dev/null +++ b/tests/data/lexer/0011_keywords.txt @@ -0,0 +1,12 @@ +FN_KW 2 "fn" +WHITESPACE 1 " " +USE_KW 3 "use" +WHITESPACE 1 " " +STRUCT_KW 6 "struct" +WHITESPACE 1 " " +TRAIT_KW 5 "trait" +WHITESPACE 1 " " +ENUM_KW 4 "enum" +WHITESPACE 1 " " +IMPL_KW 4 "impl" +WHITESPACE 1 "\n" -- cgit v1.2.3