### ----------------------------------------------------
### -- Text::CSV
### -- Licenses: Artistic-2.0
### -- Authors: H.Merijn Brand (Tux)
### -- File: NLPW-2015/032-grammar.txt
### ----------------------------------------------------
grammar {
    token lines       { <line>* }
    token line        { <fields> <lineend> }
    token fields      { <field>* % <separator> }
    token field       { <quote> : $<text>=<quotedvalue> <quote> | $<text>=<value> }
    token value       { [ <-separator> & <-quote> & <-lineend> ] * }
    token quotedvalue { <-quote> * }
    token separator   { "$s" }
    token quote       { "$q" }
    token escape      { "$e" }
    token lineend     { $l }
    }


