mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Allow UTF8 characters.
This commit is contained in:
parent
7ccaf4257c
commit
8016f4f0bb
@ -7,12 +7,12 @@ header <- name (COMMA name)*
|
||||
record <- field (COMMA field)*
|
||||
name <- field
|
||||
field <- escaped / non_escaped
|
||||
escaped <- DQUOTE (TEXTDATA / COMMA / CR / LF / TWO_DQUOTE)* DQUOTE
|
||||
escaped <- DQUOTE (TEXTDATA / COMMA / CR / LF / D_DQUOTE)* DQUOTE
|
||||
non_escaped <- TEXTDATA*
|
||||
COMMA <- ','
|
||||
CR <- '\r'
|
||||
DQUOTE <- '"'
|
||||
LF <- '\n'
|
||||
NL <- CR LF / CR / LF
|
||||
TEXTDATA <- [\x20-\x21] / [\x23-\x2B] / [\x2D-\x7E]
|
||||
TWO_DQUOTE <- '"' '"'
|
||||
TEXTDATA <- ![",] .
|
||||
D_DQUOTE <- '"' '"'
|
||||
|
Loading…
Reference in New Issue
Block a user