Related articles |
---|
[4 earlier articles] |
Re: Preview in grammar haberg@math.su.se (2006-05-09) |
Re: Preview in grammar DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2006-05-09) |
Re: Preview in grammar franku@fmi.uni-passau.de (Ulrich Frank) (2006-05-09) |
Re: Preview in grammar cfc@shell01.TheWorld.com (Chris F Clark) (2006-05-11) |
Re: Preview in grammar franku@fmi.uni-passau.de (Ulrich Frank) (2006-05-11) |
Re: Preview in grammar franku@fmi.uni-passau.de (Ulrich Frank) (2006-05-11) |
Re: Preview in grammar Meyer-Eltz@t-online.de (Detlef Meyer-Eltz) (2006-05-12) |
Re: Preview in grammar cfc@shell01.TheWorld.com (Chris F Clark) (2006-05-12) |
Re: Preview in grammar pbmann@gmail.com (2006-05-12) |
Re: Preview in grammar pbmann@gmail.com (2006-05-12) |
Re: Preview in grammar pbmann@gmail.com (2006-05-15) |
Re: Preview in grammar cfc@shell01.TheWorld.com (Chris F Clark) (2006-05-15) |
From: | Detlef Meyer-Eltz <Meyer-Eltz@t-online.de> |
Newsgroups: | comp.compilers |
Date: | 12 May 2006 00:47:55 -0400 |
Organization: | Compilers Central |
References: | 06-05-011 |
Keywords: | parse |
Posted-Date: | 12 May 2006 00:47:54 EDT |
>I need a preview which token comes next
Another non LALR parser generator, which provides the functionality is
TextTransformer at
http://www.texttransformer.com // english
http://www.texttransformer.de // german
There are five member functions of the ParserState class concerning
the next token:
---
std::string State.next_str() const
returns the text of the next token
---
std::string State.next_str(int sub) const
returns the text of the sub-expresion with the index sub of the next
token
---
std::string State.next_copy() const
returns the text of the next token including the ignored characters
before
---
unsigned int State.next_size() const
returns the number of sub-expressions of the next token
---
unsigned int State.next_length(int sub = 0) const
returns the lenght of the text of sub-expression sub of the next token
Regards
Detlef Meyer-Eltz
Return to the
comp.compilers page.
Search the
comp.compilers archives again.