What is an white-space?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

What is an white-space?

Soni "They/Them" L.
I'm reading the Lua 5.3 manual trying to write an Lua parser and...
what's an white-space?That term only appears once in the whole manual
and it doesn't seem to come with a definition. As such, idk how to write
a Lua parser.

Reply | Threaded
Open this post in threaded view
|

Re: What is an white-space?

Egor Skriptunoff-2
On Sat, Mar 30, 2019 at 3:37 PM Soni "They/Them" L. wrote:
I'm reading the Lua 5.3 manual trying to write an Lua parser and...
what's an white-space?That term only appears once in the whole manual
and it doesn't seem to come with a definition. As such, idk how to write
a Lua parser.


Lua 5.4 manual defines white-space:
In source code, Lua recognizes as spaces the standard ASCII white-space characters:
space, form feed, newline, carriage return, horizontal tab, and vertical tab. 

This matches to the subset of Unicode white-space characters (WSpace=yes)
from the range U+0000..U+007F