[antlr-interest] (no subject)
Gavin Lambert
antlr at mirality.co.nz
Tue Oct 2 12:43:07 PDT 2012
At 06:24 3/10/2012, lin q wrote:
>I like to parse some simple name/value pair data file in the
format
>of "name=value" at each line, here is an example:
>
>race=asia
>age=10
>name=uart
>gender=m
A full grammar really is overkill for this sort of thing. Just
use the facilities that should already be in your language of
choice to read in each line and split on the first = sign.
More information about the antlr-interest
mailing list