diff options
Diffstat (limited to 'src/lexer.rs')
-rw-r--r-- | src/lexer.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lexer.rs b/src/lexer.rs deleted file mode 100644 index cda9fe2b2..000000000 --- a/src/lexer.rs +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | use {Token, TextUnit}; | ||
2 | use syntax_kinds::*; | ||
3 | |||
4 | pub fn next_token(text: &str) -> Token { | ||
5 | let c = text.chars().next().unwrap(); | ||
6 | Token { | ||
7 | kind: IDENT, | ||
8 | len: TextUnit::len_of_char(c), | ||
9 | } | ||
10 | } \ No newline at end of file | ||