[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to return the poition in the input string where the token is f
From: |
Hans Aberg |
Subject: |
Re: how to return the poition in the input string where the token is found |
Date: |
Fri, 4 Jul 2003 12:07:15 +0200 |
This sems like a question for the:
Help-flex mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-flex
At 01:44 -0700 2003/07/04, Maansi Gupta wrote:
>Hi,
>
>We are trying to develop a friendly IDE for our own
>grammer. For this purpose we have created a Lexer
>which is taking input from a string buffer.
>
>The user enters the script in a rich edit control. The
>lexer is called after each character.
>
>Once a token is recognized we need to call a function
>in the action part of the lexer, that would return the
>position of the character in the string.
>
>For example if input string is "x+y". Where "+" is the
>token to be identified, the function needs to pass the
>position of "+" in the string i.e. 2.
>
>I am unable to find any means to return this
>position.Please help regarding this
>
>Thanks
>
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>
>_______________________________________________
>address@hidden http://mail.gnu.org/mailman/listinfo/help-bison