[il-antlr-interest: 34508] Re: [antlr-interest] Something Wrong in Antlr3CSharpReleases 3.4?

2011-10-22 Thread Darek
 But when I change the Bootstrap to Latest version from
 http://www.antlr.org/wiki/display/ANTLR3/Antlr3CSharpReleases, which version
 is 3.4.1.9004, I can't compile my code again.
 
 The error is this:
 
 *F:\antlr\AntlrTest\Reference\Antlr\Antlr3.targets(123,5): error AC1000:
 Unknown build error: Exception has been thrown by the target of an
 invocation.*
 *== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==*

I'm facing a similar problem. I've read the latest release notes and I'm quite 
sure I followed the instructions in the ANTLRCSharopDocumentation - 9004.xps. 
I'm using Visual Studio 2010 Ultimate on a 32-bit windows 7 system.

Any clues?













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: 34509] Re: [antlr-interest] [C target][HEELP :-] About disable recovery ... Override recoverFromMismatchedToken() ... Linker error

2011-10-22 Thread Ruslan Zasukhin
On 10/21/11 7:48 PM, Jim Idle j...@temporal-wave.com wrote:

Aha, 

So I was stupid enough (shame on me :-) to not see that I can do things as

void* recoverFromMismatchedToken_off(
pANTLR3_BASE_RECOGNIZER recognizer,
ANTLR3_UINT32 ttype,
pANTLR3_BITSET_LIST follow)
{
recognizer-mismatch( recognizer, ttype, follow );
 magic :) 

   return NULL;
}


Thank you for point, Jim.  I will try this way,
but as I have pointed query

DRO TABLE T1;

Even do not call recoverFromMismatchedToken handler,
Because here no viable alternative happens  ...
So I was need override recover()

 In the baserecognizer code, the functions are called directly, but they
 are all available indirectly via the pointer interface. I think you are
 not fundamentally understanding this. So, they are all static to their
 source code files and do not pollute the namespace, and when they are not
 being called internally, you call them via their pointers in the
 interface.

Of course I have read sources and even debug them, and have see that
pointers, because I already did override error builder func ...

Just, try please understand, that reading sources is not best way to catch
HOW TO USE library.

I think if even me - C++ developer 20 years, have not to see that way of
call indirectly your internal methods ...it will be not easy for other
developers also ...

Because this is quite unusual for LIBRARIES ... You use very smart
techniques in ANTLR/C, this is cool ... But they are not so obvious for
others as you may think :)

Will be very helpful to have such
C/Examples/DisableRevocer

Thank you for patience :)
 
 Do you see this in the antlr3BaseRecognizerNew():
 
 recognizer-match   = match;
 recognizer-matchAny= matchAny;
 recognizer-memoize = memoize;
 recognizer-mismatch= mismatch;
 recognizer-mismatchIsUnwantedToken = mismatchIsUnwantedToken;
 recognizer-mismatchIsMissingToken  = mismatchIsMissingToken;
 recognizer-recover = recover;
 recognizer-recoverFromMismatchedElement=
 recoverFromMismatchedElement;
 recognizer-recoverFromMismatchedSet= recoverFromMismatchedSet;
 recognizer-recoverFromMismatchedToken  = recoverFromMismatchedToken;
 
 etc
 
 
 So, install your own versions of whatever you like, then in your external
 version, call the methods via the pointers in the interface. Easy. This is
 true of ALL the interfaces, so that you can override any method you like.
 Now, perhaps I should have called the error recovery methods indirectly in
 the library itself, but they are all bound together and it is a trivial
 matter for you to call mismatch indirectly instead of directly in your
 code.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]



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: 34510] Re: [antlr-interest] Something Wrong in Antlr3CSharpReleases 3.4?

2011-10-22 Thread Darek
Darek dariusz.brzezinski@... writes:

EDIT: On my home machine with Visual Studio 2010 Ultimate I'm having no 
problems.

At work on a machine with Visual SStudio Ultimate 2010 SP 1 I'm getting the
 target invocation exception. I've mingling with the *.targets file but with no 
results. 

Hope somebody can help me or suggest where to look for bugs.







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: 34512] Re: [antlr-interest] Something Wrong in Antlr3CSharpReleases 3.4?

2011-10-22 Thread 李志鹏
same as me

VS2010 ultimate with sp1

target invocation exception, but antlr3CSharp 3.3 no problem.

I use 3.3 now.


On Saturday, October 22, 2011, Darek wrote:

 Darek dariusz.brzezinski@... writes:

 EDIT: On my home machine with Visual Studio 2010 Ultimate I'm having no
 problems.

 At work on a machine with Visual SStudio Ultimate 2010 SP 1 I'm getting the
  target invocation exception. I've mingling with the *.targets file but
 with no
 results.

 Hope somebody can help me or suggest where to look for bugs.







 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: 34513] Re: [antlr-interest] Something Wrong in Antlr3CSharpReleases 3.4?

2011-10-22 Thread 李志鹏
yes, I copy en.stg to zh.stg(my language is simplified Chinese), and build
ok now

but I find things change a lot from 3.3 to 3.4. Such as **Parser.***_return
changes to AstParserRuleReturnScopeCommonTree,CommonToken

this might more coincidental  with C# language.

Thanks Dariusz for your information.



On Saturday, October 22, 2011, Dariusz Brzeziński wrote:

  I think I found what's wrong:

 The MSBuild task takes locale into account and tries to select an
 appropriate messages file. Since my locale are Polish, the task was looking
 for the file pl.stg in Antlr\Tool\Templates\messages\languages. There was an
 error when it didn't find it.

 Quick solution: copy and rename en.stg to your locale.stg. In my case
 pl.stg.

 Hope this helps.

 Cheers,
 Darek

 W dniu 10/22/2011 1:52 PM, 李志鹏 pisze:

 same as me

  VS2010 ultimate with sp1

  target invocation exception, but antlr3CSharp 3.3 no problem.

  I use 3.3 now.


 On Saturday, October 22, 2011, Darek wrote:

 Darek dariusz.brzezinski@... javascript:_e({}, 'cvml',
 'dariusz.brzezinski@...'); writes:

 EDIT: On my home machine with Visual Studio 2010 Ultimate I'm having no
 problems.

 At work on a machine with Visual SStudio Ultimate 2010 SP 1 I'm getting
 the
  target invocation exception. I've mingling with the *.targets file but
 with no
 results.

 Hope somebody can help me or suggest where to look for bugs.







 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: 34514] [antlr-interest] Should I contribute working example code for CSharp3 target?

2011-10-22 Thread Voelkel, Andy
Hi,
Thanks to the generous help from this list, I seem to have got over the worst 
of the learning curve for the Antlr C# target. I've also started to notice the 
logic in how the C# target deviates from the Java target, so I don't think I'll 
have to pester the list with stupid questions quite so much going forward. The 
C# target part of the learning curve has been for me much more difficult than 
the Antr learning curve itself, mostly because there is a lot of broken or out 
of date example code for the C# target floating around and it is hard to know 
where to look for useful examples that do work properly.
Anyhow, I've converted all the calculator examples from the first section of 
The Definitive Guide To Antlr to the CSharp3 target and they all seem to work. 
If there is interest and if I know how to do it, I would be happy to contribute 
them to the Antlr community. I'll probably continue to convert more examples as 
I work my way through the book.
I have to laugh, because for all I know there are up to date examples for all 
of these and I just don't know where they are!
I'd also be happy to contribute a few paragraphs on how the CSharp3 target 
grammar files and test harness differ from the Java target. These might be 
useful to newcomers such as myself since one generally loses the beginners 
perspective over time and thing become obvious that might not be obvious to 
beginners.

-  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

-- 
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: 34515] Re: [antlr-interest] ANTLRWorks 2 (for ANTLR v4)/Hotkeys, Shortcuts; multi-monitor support

2011-10-22 Thread Udo Weik
Hello all,

and now my really humble wishes - hotkeys/shortcuts everywhere
and unique names for all the dialogs.

I'm working since many years with Speech Recognition (SR)
(yep, Ter), that means all my apps are controlled with speech
commands. Additionally I'm using a touchscreen with application
specific dynamic keyboard layouts. The basic requirement for
both is a reliable way to trigger the wanted command of an
app. The main problem are context menus - which can, as the name
implies, change depending on the context. Therefore it's not
reliable just to move n items down, press Enter and for submenus
repeat that.
(And pls. GUI-programmers - always be so kind and think about
disabled persons - catchword accessibility [of software] -
fortunately I'm not a disabled person, but when you work with
SR your senses are sharpend on that subject).

When working with SR, there are three types of commands:
1. global
2. application-specfic
3. window-specific

For type 3., window-specific commands, e. g. all kinds of dialogs,
a unique name of the dialog is necessary so that the corresponding
SR-commands are only valid when that dialog is shown.


Last I hope that ANTLRWorks 2 supports multiple monitors - all windows
should be de/attachable.

More wishes will follow, Christmas is comming soon...


Many thanks so far and greetings
Udo

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: 34516] Re: [antlr-interest] Should I contribute working example code for CSharp3 target?

2011-10-22 Thread Terence Parr
sure. send me a zip.
Ter
On Oct 22, 2011, at 9:14 AM, Voelkel, Andy wrote:

 Hi,
 Thanks to the generous help from this list, I seem to have got over the worst 
 of the learning curve for the Antlr C# target. I've also started to notice 
 the logic in how the C# target deviates from the Java target, so I don't 
 think I'll have to pester the list with stupid questions quite so much going 
 forward. The C# target part of the learning curve has been for me much more 
 difficult than the Antr learning curve itself, mostly because there is a lot 
 of broken or out of date example code for the C# target floating around and 
 it is hard to know where to look for useful examples that do work properly.
 Anyhow, I've converted all the calculator examples from the first section 
 of The Definitive Guide To Antlr to the CSharp3 target and they all seem to 
 work. If there is interest and if I know how to do it, I would be happy to 
 contribute them to the Antlr community. I'll probably continue to convert 
 more examples as I work my way through the book.
 I have to laugh, because for all I know there are up to date examples for all 
 of these and I just don't know where they are!
 I'd also be happy to contribute a few paragraphs on how the CSharp3 target 
 grammar files and test harness differ from the Java target. These might be 
 useful to newcomers such as myself since one generally loses the beginners 
 perspective over time and thing become obvious that might not be obvious to 
 beginners.
 
 -  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


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: 34517] Re: [antlr-interest] Should I contribute working example code for CSharp3 target?

2011-10-22 Thread 李志鹏
me too, I have trouble at begin for C# too.



On Sunday, October 23, 2011, Terence Parr wrote:

 sure. send me a zip.
 Ter
 On Oct 22, 2011, at 9:14 AM, Voelkel, Andy wrote:

  Hi,
  Thanks to the generous help from this list, I seem to have got over the
 worst of the learning curve for the Antlr C# target. I've also started to
 notice the logic in how the C# target deviates from the Java target, so I
 don't think I'll have to pester the list with stupid questions quite so much
 going forward. The C# target part of the learning curve has been for me much
 more difficult than the Antr learning curve itself, mostly because there is
 a lot of broken or out of date example code for the C# target floating
 around and it is hard to know where to look for useful examples that do work
 properly.
  Anyhow, I've converted all the calculator examples from the first
 section of The Definitive Guide To Antlr to the CSharp3 target and they all
 seem to work. If there is interest and if I know how to do it, I would be
 happy to contribute them to the Antlr community. I'll probably continue to
 convert more examples as I work my way through the book.
  I have to laugh, because for all I know there are up to date examples for
 all of these and I just don't know where they are!
  I'd also be happy to contribute a few paragraphs on how the CSharp3
 target grammar files and test harness differ from the Java target. These
 might be useful to newcomers such as myself since one generally loses the
 beginners perspective over time and thing become obvious that might not be
 obvious to beginners.
 
  -  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 javascript:;, 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


 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.