Skip to content

Instantly share code, notes, and snippets.

@dwaite
Created March 11, 2011 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwaite/866813 to your computer and use it in GitHub Desktop.
Save dwaite/866813 to your computer and use it in GitHub Desktop.
$ bundle exec rspec spec -fd
Callisto::Lexer
#tokenize
tokenizes a blank message to an empty array
tokenizes 'key' into a single identifier
tokenizes 'foo bar' into two identifiers
tokenizes hex numbers
tokenizes integers
tokenizes numbers starting with a decimal point
tokenizes numbers in scientific notation
tokenizes a symbol
tokenizes a symbol sequence
tokenizes '1 + 2'
tokenizes '1 + 2 * 3
tokenizes '1+2*3' (without whitespace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment