Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: markup/textual/csv/parr/extracted
Source used for this grammar: Terence Parr, CSV.g4
, 11-jul-2005; 27-oct-2005 [Explore]
file
, hdr
, row
, field
, TEXT
, STRING
), 0 root (—), 1 top (file
), 0 bottom (—).file ::=
hdr row
hdr ::= row
row ::= field "," field "\r" "\n"
field ::= TEXT STRING ε
TEXT ::= ",""\n""\r""""
STRING ::= """ """ """""" """