Click here to Skip to main content
14,543,660 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Counting bus cycles and nanoseconds Pin
CodeWraith16-Feb-20 2:42
MemberCodeWraith16-Feb-20 2:42 
GeneralRe: Counting bus cycles and nanoseconds Pin
Mike Hankey16-Feb-20 2:26
professionalMike Hankey16-Feb-20 2:26 
GeneralRe: Counting bus cycles and nanoseconds Pin
Gary R. Wheeler16-Feb-20 5:19
MemberGary R. Wheeler16-Feb-20 5:19 
GeneralRe: Counting bus cycles and nanoseconds Pin
CodeWraith16-Feb-20 5:44
MemberCodeWraith16-Feb-20 5:44 
GeneralRe: Counting bus cycles and nanoseconds Pin
CPallini16-Feb-20 7:35
mveCPallini16-Feb-20 7:35 
GeneralRe: Counting bus cycles and nanoseconds Pin
Gary R. Wheeler16-Feb-20 11:50
MemberGary R. Wheeler16-Feb-20 11:50 
GeneralRe: Counting bus cycles and nanoseconds Pin
CodeWraith16-Feb-20 13:26
MemberCodeWraith16-Feb-20 13:26 
RantBook authors, if you don't provide example code, I don't believe you. Pin
honey the codewitch15-Feb-20 23:48
mvahoney the codewitch15-Feb-20 23:48 
So I was about to buy the 2nd edition of a book for which I have the first edition, but then the author tells me that epsilon rules in a CFG don't require special casing.

But he offers no example on how to generate an LR table using a grammar with epsilon transitions in it.

Meanwhile, I'm over here trying to generate the (S)LR table, and so I create the extended grammar.

so I take this:

S -> A
A -> B b
B -> B a
B ->


And then I mark it up with the itemSet ids, like so:

0/Sstart/-1 -> 0/S/1 1/#EOS/2
0/S/1 -> 0/A/3
0/A/3 -> 0/B/4 4/b/5
0/B/4 -> 0/B/4 4/a/6
0/B/4 ->


But the bold lines, I need a symbol there but i don't have it. Should be like

0/B/4 -> number/#EPSILON/number
but if i add the artificial #EPSILON tag it breaks everything.

And if I leave it out I don't end up generating my reductions for the corresponding state in the LR table.

Again, the book I have says epsilons don't need any special handling.

But here I am. I got the first edition of this book for free. The second one, new costs over $200? (i think thats the publishers ask - not necessarily the cheapest price), used costs $80-$120.

I guess the author doesn't want me to buy it.
Real programmers use butterflies


modified 16-Feb-20 6:06am.

GeneralRe: Book authors, if you don't provide example code, I don't believe you. Pin
Amarnath S16-Feb-20 0:54
professionalAmarnath S16-Feb-20 0:54 
GeneralRe: Book authors, if you don't provide example code, I don't believe you. Pin
honey the codewitch16-Feb-20 5:58
mvahoney the codewitch16-Feb-20 5:58 
PraiseHelp to find an old article. Pin
Pedro Buendia15-Feb-20 8:13
MemberPedro Buendia15-Feb-20 8:13 
GeneralRe: Help to find an old article. Pin
Rick York15-Feb-20 13:02
mveRick York15-Feb-20 13:02 
GeneralRe: Help to find an old article. Pin
Pedro Buendia15-Feb-20 22:04
MemberPedro Buendia15-Feb-20 22:04 
GeneralWinning Best Article is a mug's game Pin
honey the codewitch15-Feb-20 5:35
mvahoney the codewitch15-Feb-20 5:35 
GeneralRe: Winning Best Article is a mug's game Pin
Mark_Wallace15-Feb-20 6:51
MemberMark_Wallace15-Feb-20 6:51 
GeneralRe: Winning Best Article is a mug's game Pin
Marc Clifton15-Feb-20 11:24
mvaMarc Clifton15-Feb-20 11:24 
PraiseRe: Winning Best Article is a mug's game Pin
Kornfeld Eliyahu Peter15-Feb-20 19:33
mveKornfeld Eliyahu Peter15-Feb-20 19:33 
GeneralRe: Winning Best Article is a mug's game Pin
BillWoodruff16-Feb-20 1:03
mveBillWoodruff16-Feb-20 1:03 
GeneralRe: Winning Best Article is a mug's game Pin
Gary R. Wheeler16-Feb-20 5:07
MemberGary R. Wheeler16-Feb-20 5:07 
GeneralRe: Winning Best Article is a mug's game Pin
BillWoodruff16-Feb-20 14:52
mveBillWoodruff16-Feb-20 14:52 
GeneralRe: Winning Best Article is a mug's game Pin
honey the codewitch16-Feb-20 5:57
mvahoney the codewitch16-Feb-20 5:57 
GeneralRe: Winning Best Article is a mug's game Pin
Greg Utas16-Feb-20 6:49
professionalGreg Utas16-Feb-20 6:49 
GeneralRe: Winning Best Article is a mug's game Pin
honey the codewitch16-Feb-20 7:18
mvahoney the codewitch16-Feb-20 7:18 
GeneralRe: Winning Best Article is a mug's game Pin
BillWoodruff16-Feb-20 8:21
mveBillWoodruff16-Feb-20 8:21 
GeneralRe: Winning Best Article is a mug's game Pin
BillWoodruff16-Feb-20 8:36
mveBillWoodruff16-Feb-20 8:36 

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.