timtadh / lexmachine

Lex machinary for go.
Other
405 stars 28 forks source link

fixed sample for "SPACE" #13

Closed Oppodelldog closed 6 years ago

Oppodelldog commented 6 years ago

the given sample \t\n\r does not work. Corrected to align the token name.

timtadh commented 6 years ago

SPACE tokens are often defined as all the white space characters. However, since it was confusing for you I will accept the PR.

Oppodelldog commented 6 years ago

I guess the sample then should have been [ \t\n\r] to make the whitespaces optional. I didn't know whitespaces are often called spaces.