Skip to content

Commit

Permalink
docs(lexer): state why numbers won't be lexed
Browse files Browse the repository at this point in the history
Also it's not required to solve our actual problem.
  • Loading branch information
Byron committed May 6, 2015
1 parent 97ae908 commit 270f57c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ pub enum TokenType {
BooleanTrue,
/// `false`
BooleanFalse,

/// any json number, like `1.24123` or `123`
Number,
// NOTE: We can't do numbers with our simplified lexer as it would require
// us to read a char just to see that it's not a number and thus the previous
// tokens are to be returned. But we cannot peek without drastically complicating
// our so far quite speedy implementation.
// Number,
/// `null`
Null,

Expand Down

0 comments on commit 270f57c

Please sign in to comment.