Allow UTF8 characters.

This commit is contained in:
yhirose 2015-02-26 22:06:54 -05:00
parent 7ccaf4257c
commit 8016f4f0bb

View File

@ -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 <- '"' '"'