Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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??

like image 661
user1297061 Avatar asked Nov 30 '13 09:11

user1297061


People also ask

Is carriage return considered whitespace?

Space, tab, line feed (newline), carriage return, form feed, and vertical tab characters are called "white-space characters" because they serve the same purpose as the spaces between words and lines on a printed page — they make reading easier.

What is the ASCII code for white space?

The ASCII code for a blank space is the decimal number 32, or the binary number 0010 00002.

What is meant by whitespace?

noun. the unprinted area of a piece of printing, as of a poster or newspaper page, or of a portion of a piece of printing, as of an advertisement; blank space. White space is as effective in a layout as type.


1 Answers

\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.

like image 181
Roger Rowland Avatar answered Oct 06 '22 23:10

Roger Rowland