11.07.2015 Views

sample

sample

sample

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

First, we’ll scan for names: method names and variable names, which we’ll callidentifiers. Also scanning for special reserved keywords such as if, def and true.34 if identifier = chunk[/\A([a-z]\w*)/, 1]35 if KEYWORDS.include?(identifier) # keywords will generate [:IF, "if"]36 tokens

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!