What does \v and \r mean? Are they white spaces?

user1297061 picture user1297061 · Nov 30, 2013 · Viewed 20k times · Source

I'm taking a course on lexical analysis, and \t\v\r is used in the lexer token definitions to represent white spaces. What are \v and \r exactly??

Answer

Roger Rowland picture Roger Rowland · Nov 30, 2013

\t is a horizontal tab, \v is a vertical tab and \r is a carriage return.

They are certainly a sub-set of white space characters.