[il-antlr-interest: 34668] Re: [antlr-interest] NPE parsing tree grammar

2011-10-31 Thread David Wood
Are you planning a 3.5 release anytime soon?

David Wood 
Computing Systems for Wireless Networks
IBM TJ Watson Research Center
daw...@us.ibm.com
914-784-5123 (office), 914-396-6515 (mobile)




From:   Terence Parr 
To: David Wood/Watson/IBM@IBMUS
Cc: antlr-interest@antlr.org
Date:   10/27/2011 03:27 PM
Subject:Re: [antlr-interest] NPE parsing tree grammar



works in latest v3 main trunk. can u grab from depot/...on site?
T
On Oct 27, 2011, at 10:47 AM, David Wood wrote:

> I would submit a bug, but I can't find a JIRA admin on the site to 
create 
> me an account.
> 
> Exception in thread "main" java.lang.NullPointerException
>at org.antlr.runtime.tree.BaseTreeAdaptor.becomeRoot(
> BaseTreeAdaptor.java:145)
>at 
> com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.relationalExpression(
> DSMTreeGrammar.java:3058)
>at 
> com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.equalityExpression(
> DSMTreeGrammar.java:2920)
>at 
> com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.andExpression(
> DSMTreeGrammar.java:2819)
>at 
> 
com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.exclusiveOrExpression(
> DSMTreeGrammar.java:2718)
>at 
> 
com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.inclusiveOrExpression(
> DSMTreeGrammar.java:2617)
>at 
> 
com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.conditionalAndExpression(
> DSMTreeGrammar.java:2516)
>at 
> 
com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.conditionalOrExpression(
> DSMTreeGrammar.java:2415)
>at com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.expression(
> DSMTreeGrammar.java:2355)
>at 
> 
com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.conditionalExpression(
> DSMTreeGrammar.java:2293)
>at com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.rule(
> DSMTreeGrammar.java:1338)
>at 
> com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.ruleStatement(
> DSMTreeGrammar.java:1230)
>at com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.ruleSet(
> DSMTreeGrammar.java:1155)
>at com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.root(
> DSMTreeGrammar.java:170)
>at 
com.ibm.watson.dsm.parser.dsm.DSMParser.parse(DSMParser.java:63
> )
>at 
com.ibm.watson.dsm.parser.dsm.DSMParser.main(DSMParser.java:79)
> 
> 
> 
> David Wood 
> Computing Systems for Wireless Networks
> IBM TJ Watson Research Center
> daw...@us.ibm.com
> 914-784-5123 (office), 914-396-6515 (mobile)
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address



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

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



[il-antlr-interest: 34670] Re: [antlr-interest] NPE parsing tree grammar

2011-10-31 Thread Terence Parr
3.4.1? well, we're collecting bugs for a bit. daily builds will be updated. Sam 
should have fixed now.
Ter
On Oct 31, 2011, at 6:06 AM, David Wood wrote:

> Are you planning a 3.5 release anytime soon? 
> 
> David Wood 
> Computing Systems for Wireless Networks
> IBM TJ Watson Research Center
> daw...@us.ibm.com
> 914-784-5123 (office), 914-396-6515 (mobile)
> 
> 
> 
> 
> From:Terence Parr  
> To:David Wood/Watson/IBM@IBMUS 
> Cc:antlr-interest@antlr.org 
> Date:10/27/2011 03:27 PM 
> Subject:Re: [antlr-interest] NPE parsing tree grammar 
> 
> 
> 
> works in latest v3 main trunk. can u grab from depot/...on site?
> T
> On Oct 27, 2011, at 10:47 AM, David Wood wrote:
> 
> > I would submit a bug, but I can't find a JIRA admin on the site to create 
> > me an account.
> > 
> > Exception in thread "main" java.lang.NullPointerException
> >at org.antlr.runtime.tree.BaseTreeAdaptor.becomeRoot(
> > BaseTreeAdaptor.java:145)
> >at 
> > com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.relationalExpression(
> > DSMTreeGrammar.java:3058)
> >at 
> > com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.equalityExpression(
> > DSMTreeGrammar.java:2920)
> >at 
> > com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.andExpression(
> > DSMTreeGrammar.java:2819)
> >at 
> > com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.exclusiveOrExpression(
> > DSMTreeGrammar.java:2718)
> >at 
> > com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.inclusiveOrExpression(
> > DSMTreeGrammar.java:2617)
> >at 
> > com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.conditionalAndExpression(
> > DSMTreeGrammar.java:2516)
> >at 
> > com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.conditionalOrExpression(
> > DSMTreeGrammar.java:2415)
> >at com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.expression(
> > DSMTreeGrammar.java:2355)
> >at 
> > com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.conditionalExpression(
> > DSMTreeGrammar.java:2293)
> >at com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.rule(
> > DSMTreeGrammar.java:1338)
> >at 
> > com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.ruleStatement(
> > DSMTreeGrammar.java:1230)
> >at com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.ruleSet(
> > DSMTreeGrammar.java:1155)
> >at com.ibm.watson.dsm.parser.dsm.antlr.DSMTreeGrammar.root(
> > DSMTreeGrammar.java:170)
> >at com.ibm.watson.dsm.parser.dsm.DSMParser.parse(DSMParser.java:63
> > )
> >at com.ibm.watson.dsm.parser.dsm.DSMParser.main(DSMParser.java:79)
> > 
> > 
> > 
> > David Wood 
> > Computing Systems for Wireless Networks
> > IBM TJ Watson Research Center
> > daw...@us.ibm.com
> > 914-784-5123 (office), 914-396-6515 (mobile)
> > 
> > List: http://www.antlr.org/mailman/listinfo/antlr-interest
> > Unsubscribe: 
> > http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 
> 


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

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



[il-antlr-interest: 34671] Re: [antlr-interest] working examples for StringTemplate4 and C#? (I'm stuck again)

2011-10-31 Thread Voelkel, Andy
Hi Sam,

Is this helpful:?

System.dll!System.Uri.CreateThis(string uri, bool dontEscape, 
System.UriKind uriKind) + 0x112 bytes
System.dll!System.Uri.Uri(string uriString) + 0x15 bytes

Antlr4.StringTemplate.dll!Antlr4.StringTemplate.TemplateGroupFile.TemplateGroupFile(string
 fileName, char delimiterStartChar, char delimiterStopChar) + 0x135 bytes
>   Tree1.exe!Eval.Eval(Antlr.Runtime.Tree.ITreeNodeStream input, 
> Antlr.Runtime.RecognizerSharedState state) Line 61 + 0x20 bytes   C#
Tree1.exe!Eval.Eval(Antlr.Runtime.Tree.ITreeNodeStream input) Line 51 + 
0x23 bytes  C#
Tree1.exe!Program.Main(string[] args) Line 25 + 0x18 bytes  C#
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, 
System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x6d bytes

Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
 + 0x2a bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object 
state) + 0x63 bytes

mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext
 executionContext, System.Threading.ContextCallback callback, object state, 
bool ignoreSyncCtx) + 0xb0 bytes

mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext
 executionContext, System.Threading.ContextCallback callback, object state) + 
0x2c bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes
[Native to Managed Transition]


-Original Message-
From: Sam Harwell [mailto:sharw...@pixelminegames.com]
Sent: Sunday, October 30, 2011 8:41 PM
To: Voelkel, Andy; 'ANTLR interest'
Subject: RE: [antlr-interest] working examples for StringTemplate4 and C#? (I'm 
stuck again)

Do you have a stack trace or any other information about where the exception 
occurs? In Visual Studio, you can get a stack trace even if you don't have the 
source code by going to Debug>Exceptions..., checking the box next to 
UriFormatException, and then looking at the Call Stack window after the 
exception is thrown.

Sam

-Original Message-
From: antlr-interest-boun...@antlr.org
[mailto:antlr-interest-boun...@antlr.org] On Behalf Of Voelkel, Andy
Sent: Sunday, October 30, 2011 5:05 PM
To: 'ANTLR interest'
Subject: [antlr-interest] working examples for StringTemplate4 and C#? (I'm 
stuck again)

Hi,

I'm getting stuck trying to start using template group files. I try this to 
open my .stg file:

TemplateGroup Tg = new TemplateGroupFile("RTX.stg", '<', '>');

.. and I get a UriFormatException, "The format of the URI could not be 
determined".

Are there any working examples of using ST4 with C# that anyone could point me 
to? I'll gladly update the ST4 Wiki (which seems to be out of date) as I get 
simple examples working.

Or would I be better off just sticking with ST3?


-  Andy



CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or 
previous e-mail messages attached to it, may contain information that is 
confidential and/or legally privileged. If you are not the intended recipient, 
or a person responsible for delivering it to the intended recipient, please DO 
NOT disclose the contents to another person, store or copy the information in 
any medium, or use any of the information contained in or attached to this 
transmission for any purpose. If you have received this transmission in error, 
please immediately notify the sender by reply email or at 
priv...@plantronics.com, and destroy the original transmission and its 
attachments without reading or saving in any manner.

For further information about Plantronics - the Company, its products, brands, 
partners, please visit our website www.plantronics.com.

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





CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or 
previous e-mail messages attached to it, may contain information that is 
confidential and/or legally privileged. If you are not the intended recipient, 
or a person responsible for delivering it to the intended recipient, please DO 
NOT disclose the contents to another person, store or copy the information in 
any medium, or use any of the information contained in or attached to this 
transmission for any purpose. If you have received this transmission in error, 
please immediately notify the sender by reply email or at 
priv...@plantronics.com, and destroy the original transmission and its 
attachments without reading or saving in any manner.

For further information about Plantronics - the Company, its products, brands, 
partners, please visit our website www.plantronics.com.

Li

[il-antlr-interest: 34672] [antlr-interest] How to Parse a datastream of tokens and values

2011-10-31 Thread Weiler-Thiessen, David, SASKATOON, Engineering
Hi 

 

I am trying to parse a string that is a collection of tokens and values.   For 
example:

PRCLINTON

 

Where PR is my token, and CLINTON is the value for the token.

 

I have started a simple grammar, see below, but it won't parse the sample above.

 

message  :   productionReceipt

;



productionReceipt

:   PR VALUE

;



PR   :   'PR'

;



VALUE  :   ('a'..'z'|'A'..'Z')+

;

 

 

What am I doing wrong?  I get a MisMatchedTokenException in ANTLRWorks.

David Weiler-Thiessen 
Nestlé Purina PetCare 
phone: 306-933-0232 
cell: 306-291-9770 

This e-mail, its electronic document attachments, and the contents of its 
website linkages may contain confidential information. This information is 
intended solely for use by the individual or entity to whom it is addressed. If 
you have received this information in error, please notify the sender 
immediately and promptly destroy the material and any accompanying attachments 
from your system.


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

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



[il-antlr-interest: 34673] [antlr-interest] How to get the end line / end column of a a token / rule

2011-10-31 Thread Jan Finis
Hello,

I am trying to build a sophisticated AST using ANTLR. The attributes 
.line and .pos allow me to obtain the start line and column position of 
a token. However, is it also possible to get the end line and column? 
(since I want to have that information in the AST as well to allow 
underlining specific rules in the input text)

I think it would be possible by using .text and then counting chars and 
newlines in that string. However, I think text building is costly and 
not the right way to do it.

So what is the "best" way to get the end line and end column of a token 
or rule in ANTLR?

Best regards,
Jan Finis

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

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



[il-antlr-interest: 34674] Re: [antlr-interest] How to Parse a datastream of tokens and values

2011-10-31 Thread Bart Kiers
Hi David,

ANTLR's lexer greedily matches characters: the input "PRCLINTON" is being
tokenized as a single VALUE-token, not as a PR- and VALUE-token.

Regards,

Bart.


On Mon, Oct 31, 2011 at 6:24 PM, Weiler-Thiessen, David, SASKATOON,
Engineering  wrote:

> Hi
>
>
>
> I am trying to parse a string that is a collection of tokens and values.
> For example:
>
> PRCLINTON
>
>
>
> Where PR is my token, and CLINTON is the value for the token.
>
>
>
> I have started a simple grammar, see below, but it won't parse the sample
> above.
>
>
>
> message  :   productionReceipt
>
>;
>
>
>
> productionReceipt
>
>:   PR VALUE
>
>;
>
>
>
> PR   :   'PR'
>
>;
>
>
>
> VALUE  :   ('a'..'z'|'A'..'Z')+
>
>;
>
>
>
>
>
> What am I doing wrong?  I get a MisMatchedTokenException in ANTLRWorks.
>
> David Weiler-Thiessen
> Nestlé Purina PetCare
> phone: 306-933-0232
> cell: 306-291-9770
>
> This e-mail, its electronic document attachments, and the contents of its
> website linkages may contain confidential information. This information is
> intended solely for use by the individual or entity to whom it is
> addressed. If you have received this information in error, please notify
> the sender immediately and promptly destroy the material and any
> accompanying attachments from your system.
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>

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

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



[il-antlr-interest: 34675] Re: [antlr-interest] How to Parse a datastream of tokens and values

2011-10-31 Thread Weiler-Thiessen, David, SASKATOON, Engineering
Hi 

 

Yes, I can see how that is happening.

 

So, in my case, because I have token value pairs, and the values are not 
terminated by something deterministic, I can't use ANTLR to lex the input 
stream.  Is that correct?

 

Turns out that the input stream is fix length format, so it can be parsed in 
other ways.  I was just thinking that this might be a problem space that ANTLR 
could address also.

 

David Weiler-Thiessen 
Nestlé Purina PetCare 
phone: 306-933-0232 
cell: 306-291-9770 

This e-mail, its electronic document attachments, and the contents of its 
website linkages may contain confidential information. This information is 
intended solely for use by the individual or entity to whom it is addressed. If 
you have received this information in error, please notify the sender 
immediately and promptly destroy the material and any accompanying attachments 
from your system.

From: Bart Kiers [mailto:bki...@gmail.com] 
Sent: Monday, October 31, 2011 12:09 PM
To: Weiler-Thiessen,David,SASKATOON,Engineering
Cc: antlr-interest@antlr.org
Subject: Re: [antlr-interest] How to Parse a datastream of tokens and values

 

Hi David,

 

ANTLR's lexer greedily matches characters: the input "PRCLINTON" is being 
tokenized as a single VALUE-token, not as a PR- and VALUE-token.

 

Regards,

 

Bart.

 

On Mon, Oct 31, 2011 at 6:24 PM, Weiler-Thiessen, David, SASKATOON, Engineering 
 wrote:

Hi



I am trying to parse a string that is a collection of tokens and values.   For 
example:

PRCLINTON



Where PR is my token, and CLINTON is the value for the token.



I have started a simple grammar, see below, but it won't parse the sample above.



message  :   productionReceipt

   ;



productionReceipt

   :   PR VALUE

   ;



PR   :   'PR'

   ;



VALUE  :   ('a'..'z'|'A'..'Z')+

   ;





What am I doing wrong?  I get a MisMatchedTokenException in ANTLRWorks.

David Weiler-Thiessen
Nestlé Purina PetCare
phone: 306-933-0232
cell: 306-291-9770

This e-mail, its electronic document attachments, and the contents of its 
website linkages may contain confidential information. This information is 
intended solely for use by the individual or entity to whom it is addressed. If 
you have received this information in error, please notify the sender 
immediately and promptly destroy the material and any accompanying attachments 
from your system.


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

 


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

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



[il-antlr-interest: 34676] Re: [antlr-interest] How to Parse a datastream of tokens and values

2011-10-31 Thread Bart Kiers
Sure, you can check, using a gated semantic predicate, if there is no "PR"
ahead when matching the VALUE-token.

Something like this:

grammar T;

@lexer::members {
  private boolean ahead(String text) {
for(int i = 0; i < text.length(); i++) {
  if(text.charAt(i) != input.LA(i + 1)) {
return false;
  }
}
return true;
  }
}

message
  :  productionReceipt EOF
  ;

productionReceipt
  :  PR VALUE
  ;

PR : 'PR';

VALUE
  :  {!ahead("PR")}?=> ('a'..'z'|'A'..'Z')+
  ;


Regards,

Bart.


On Mon, Oct 31, 2011 at 10:01 PM,
Weiler-Thiessen,David,SASKATOON,Engineering <
david.weiler-thies...@purina.nestle.com> wrote:

>  Hi 
>
> ** **
>
> Yes, I can see how that is happening.
>
> ** **
>
> So, in my case, because I have token value pairs, and the values are not
> terminated by something deterministic, I can’t use ANTLR to lex the input
> stream.  Is that correct?
>
> ** **
>
> Turns out that the input stream is fix length format, so it can be parsed
> in other ways.  I was just thinking that this might be a problem space that
> ANTLR could address also.
>
> ** **
>
> David Weiler-Thiessen
> Nestlé Purina PetCare
> phone: 306-933-0232
> cell: 306-291-9770 
>
> *This e-mail, its electronic document attachments, and the contents of
> its website linkages may contain confidential information. This information
> is intended solely for use by the individual or entity to whom it is
> addressed. If you have received this information in error, please notify
> the sender immediately and promptly destroy the material and any
> accompanying attachments from your system.*
>
> *From:* Bart Kiers [mailto:bki...@gmail.com]
> *Sent:* Monday, October 31, 2011 12:09 PM
> *To:* Weiler-Thiessen,David,SASKATOON,Engineering
> *Cc:* antlr-interest@antlr.org
> *Subject:* Re: [antlr-interest] How to Parse a datastream of tokens and
> values
>
> ** **
>
> Hi David,
>
> ** **
>
> ANTLR's lexer greedily matches characters: the input "PRCLINTON" is being
> tokenized as a single VALUE-token, not as a PR- and VALUE-token.
>
> ** **
>
> Regards,
>
> ** **
>
> Bart.
>
> ** **
>
> On Mon, Oct 31, 2011 at 6:24 PM, Weiler-Thiessen, David, SASKATOON,
> Engineering  wrote:
>
> Hi
>
>
>
> I am trying to parse a string that is a collection of tokens and values.
> For example:
>
> PRCLINTON
>
>
>
> Where PR is my token, and CLINTON is the value for the token.
>
>
>
> I have started a simple grammar, see below, but it won't parse the sample
> above.
>
>
>
> message  :   productionReceipt
>
>;
>
>
>
> productionReceipt
>
>:   PR VALUE
>
>;
>
>
>
> PR   :   'PR'
>
>;
>
>
>
> VALUE  :   ('a'..'z'|'A'..'Z')+
>
>;
>
>
>
>
>
> What am I doing wrong?  I get a MisMatchedTokenException in ANTLRWorks.
>
> David Weiler-Thiessen
> Nestlé Purina PetCare
> phone: 306-933-0232
> cell: 306-291-9770
>
> This e-mail, its electronic document attachments, and the contents of its
> website linkages may contain confidential information. This information is
> intended solely for use by the individual or entity to whom it is
> addressed. If you have received this information in error, please notify
> the sender immediately and promptly destroy the material and any
> accompanying attachments from your system.
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
> ** **
>

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

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



[il-antlr-interest: 34677] [antlr-interest] Problem building custom error handlers against C target 3.4

2011-10-31 Thread Kieran Simpson
I'm using the 3.4 tarball (which when decompressed is really 
libantlr3c-3.4-beta4)

I'm wanting to override the default error handlers so that they're more 
flexible in my application.  However trying to compile my (C++) code I get

In file included from 
/usr/include/antlr3lexer.h:130: error: expected unqualified-id before 
')' token

$ g++ -v
Using built-in specs.
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.4.6/configure --prefix=/opt/local 
--build=x86_64-apple-darwin10 
--enable-languages=c,c++,objc,obj-c++,java,fortran 
--libdir=/opt/local/lib/gcc44 --includedir=/opt/local/include/gcc44 
--infodir=/opt/local/share/info --mandir=/opt/local/share/man 
--with-local-prefix=/opt/local --with-system-zlib --disable-nls 
--program-suffix=-mp-4.4 
--with-gxx-include-dir=/opt/local/include/gcc44/c++/ 
--with-gmp=/opt/local --with-mpfr=/opt/local --enable-stage1-checking 
--disable-multilib --enable-fully-dynamic-string
Thread model: posix
gcc version 4.4.6 (GCC)

Has anyone else had this problem on OSX Snow Leopard and the above g++ 
version?

Cheers,

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

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