tunc wrote:
Hi all,

I know this is basic, but reading the c documentation and googling for an
hour did not help.

Let's say I have a std::string or char* variable.
I want to get a pANTLR3_INPUT_STREAM.

How can I do this? (All examples I found is about getting one form a file.)

Thanks.
  

Functions

pANTLR3_INPUT_STREAM  antlr3NewAsciiStringCopyStream (pANTLR3_UINT8 inString, ANTLR3_UINT32 size, pANTLR3_UINT8 name)
  Create an ASCII string stream as input to ANTLR 3, copying the input string.
ANTLR3_API pANTLR3_INPUT_STREAM  antlr3NewAsciiStringInPlaceStream (pANTLR3_UINT8 inString, ANTLR3_UINT32 size, pANTLR3_UINT8 name)
  Create an in-place ASCII string stream as input to ANTLR 3.
ANTLR3_API pANTLR3_INPUT_STREAM  antlr3NewUCS2StringInPlaceStream (pANTLR3_UINT16 inString, ANTLR3_UINT32 size, pANTLR3_UINT16 name)
  Create an in-place UCS2 string stream as input to ANTLR 3.


http://www.antlr.org/api/C/index.html


Jim

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to