[antlr-interest] Just For Converting

Michael Bedward michael.bedward at gmail.com
Thu Feb 17 00:29:25 PST 2011


OK. Well in that case it would be good if you could provide the list
with more details. That will increase your chances of getting useful
advice.

Michael


2011/2/17 辛跃 <xpwithme at 163.com>:
> hello
> what had listed, is only a partion of the grammer , so i must use antlr
>
>
> At 2011-02-17,"Michael Bedward" <michael.bedward at gmail.com> wrote:
>
>>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