Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to find COM port for a specific USB devices connected. Pin
Member 24584672-Jun-15 20:57
Member 24584672-Jun-15 20:57 
QuestionGrammar in GOLD for generic constructs Pin
Sascha Lefèvre17-May-15 10:08
professionalSascha Lefèvre17-May-15 10:08 
AnswerRe: Grammar in GOLD for generic constructs Pin
Kenneth Haugland18-May-15 23:27
mvaKenneth Haugland18-May-15 23:27 
GeneralRe: Grammar in GOLD for generic constructs Pin
Sascha Lefèvre19-May-15 1:55
professionalSascha Lefèvre19-May-15 1:55 
AnswerRe: Grammar in GOLD for generic constructs Pin
Manfred Rudolf Bihy19-May-15 0:27
professionalManfred Rudolf Bihy19-May-15 0:27 
AnswerRe: Grammar in GOLD for generic constructs Pin
Manfred Rudolf Bihy19-May-15 0:36
professionalManfred Rudolf Bihy19-May-15 0:36 
GeneralRe: Grammar in GOLD for generic constructs Pin
Sascha Lefèvre19-May-15 1:51
professionalSascha Lefèvre19-May-15 1:51 
GeneralRe: Grammar in GOLD for generic constructs Pin
Manfred Rudolf Bihy19-May-15 4:54
professionalManfred Rudolf Bihy19-May-15 4:54 
Wow, that rule attribute is sweet! Thumbs Up | :thumbsup:
Does GOLD also build an abstract syntax tree (AST)?

AST is one of the neat things about ANTLR. You can go over the syntax tree in multiple passes if you wish to and can do all sorts of optimizations on it.

Coming back to your problem: I remember doing some YACC stuff at uni and IIRC you can tell it try the shift first and if that didn't work out it'll do the reduce later.

This is what I found on the GOLD.org site:
Gold.org:
Versions 2.4 and later of the GOLD Parser Builder automatically fixes Shift-Reduce Conflicts by not "reducing" when it would cause a conflict. This is the same behavior of the YACC compiler-compiler. It is best to closely check these states to determine if the "shift" is the action wanted.


So what version are you using then? Smile | :)

Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian

GeneralRe: Grammar in GOLD for generic constructs Pin
Brisingr Aerowing19-May-15 6:12
professionalBrisingr Aerowing19-May-15 6:12 
GeneralRe: Grammar in GOLD for generic constructs Pin
Manfred Rudolf Bihy19-May-15 9:28
professionalManfred Rudolf Bihy19-May-15 9:28 
GeneralRe: Grammar in GOLD for generic constructs Pin
Brisingr Aerowing19-May-15 17:28
professionalBrisingr Aerowing19-May-15 17:28 
GeneralRe: Grammar in GOLD for generic constructs Pin
Manfred Rudolf Bihy19-May-15 5:34
professionalManfred Rudolf Bihy19-May-15 5:34 
GeneralRe: Grammar in GOLD for generic constructs Pin
Sascha Lefèvre19-May-15 7:01
professionalSascha Lefèvre19-May-15 7:01 
GeneralRe: Grammar in GOLD for generic constructs Pin
Manfred Rudolf Bihy19-May-15 8:27
professionalManfred Rudolf Bihy19-May-15 8:27 
GeneralRe: Grammar in GOLD for generic constructs Pin
Sascha Lefèvre19-May-15 8:37
professionalSascha Lefèvre19-May-15 8:37 
GeneralRe: Grammar in GOLD for generic constructs Pin
Sascha Lefèvre20-May-15 2:46
professionalSascha Lefèvre20-May-15 2:46 
GeneralRe: Grammar in GOLD for generic constructs Pin
Sascha Lefèvre23-May-15 8:04
professionalSascha Lefèvre23-May-15 8:04 
GeneralRe: Grammar in GOLD for generic constructs Pin
Sascha Lefèvre8-Jun-15 20:20
professionalSascha Lefèvre8-Jun-15 20:20 
GeneralRe: Grammar in GOLD for generic constructs Pin
Manfred Rudolf Bihy8-Jun-15 20:28
professionalManfred Rudolf Bihy8-Jun-15 20:28 
GeneralRe: Grammar in GOLD for generic constructs Pin
Sascha Lefèvre8-Jun-15 20:33
professionalSascha Lefèvre8-Jun-15 20:33 
Questionhelppppp Pin
Member 1169697217-May-15 2:38
Member 1169697217-May-15 2:38 
AnswerRe: helppppp Pin
Kornfeld Eliyahu Peter17-May-15 3:33
professionalKornfeld Eliyahu Peter17-May-15 3:33 
AnswerRe: helppppp Pin
OriginalGriff17-May-15 3:59
mveOriginalGriff17-May-15 3:59 
GeneralRe: helppppp Pin
Member 1169697217-May-15 6:39
Member 1169697217-May-15 6:39 
GeneralRe: helppppp Pin
Sascha Lefèvre17-May-15 7:20
professionalSascha Lefèvre17-May-15 7:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.