chriswailes / RLTK

The Ruby Language Toolkit
http://chriswailes.github.io/RLTK/
University of Illinois/NCSA Open Source License
453 stars 35 forks source link

Added attribute readers and fixed remainder in LexingError. #25

Closed dbrabera closed 10 years ago

dbrabera commented 11 years ago

The accessors are useful for printing custom error messages.

I also changed scanner.post_match for scanner.rest. post_match returns nil if there is no valid match before calling it, and rest returns the rest of the string after the scanner pointer.