[antlr-interest] Just For Converting
Michael Bedward
michael.bedward at gmail.com
Wed Feb 16 20:59:11 PST 2011
Hello,
For fixed-width or delimited data like these it is a lot easier to
write a program by hand than use ANTLR.
Michael
On 17 February 2011 15:53, 辛跃 <xpwithme at 163.com> wrote:
>
>
>
> i want convert the Stream content like:
>
> attribute1 attibute2 attribute3 attribute4 attribute5
>
> value1 value2 value3 value4 value5
>
> value1 value2 value3 value4 value5
>
> vaue1 value2 value3 value4 value5
>
> my goal is store those tokens in the form of
>
> (atribute1 value1) ( attribue2 value2) ( attribue3 value3) ... ...
>
> (atribute1 value1) ( attribue2 value2) ( attribue3 value3) ... ...
>
> (atribute1 value1) ( attribue2 value2) ( attribue3 value3) ... ...
>
> so how could i write my grammer by antlr to reach my goal
>
> thanks
>
>
>
>
>
>
>
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
More information about the antlr-interest
mailing list