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)*
|
record <- field (COMMA field)*
|
||||||
name <- field
|
name <- field
|
||||||
field <- escaped / non_escaped
|
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*
|
non_escaped <- TEXTDATA*
|
||||||
COMMA <- ','
|
COMMA <- ','
|
||||||
CR <- '\r'
|
CR <- '\r'
|
||||||
DQUOTE <- '"'
|
DQUOTE <- '"'
|
||||||
LF <- '\n'
|
LF <- '\n'
|
||||||
NL <- CR LF / CR / LF
|
NL <- CR LF / CR / LF
|
||||||
TEXTDATA <- [\x20-\x21] / [\x23-\x2B] / [\x2D-\x7E]
|
TEXTDATA <- ![",] .
|
||||||
TWO_DQUOTE <- '"' '"'
|
D_DQUOTE <- '"' '"'
|
||||||
|
Loading…
Reference in New Issue
Block a user