|
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.
|
|
|
|
|
Most authors nowadays provide a Github repository of all their code. Strange that this author does not.
|
|
|
|
|
This book was published in 1991
Real programmers use butterflies
|
|
|
|
|
Hi, i would like to re-read an old article about virtual life or world simulation. But I can't find that article. It has been deleted or classified under other tag(s).
When i say old, i am talking about vb6/vs6 era. I barely remember much details about, but i may describe it a bit.
The article topic was a social simulation. vb6 coded. It talked about how to simulate a virtual world with a lot of entities and how it worked under the hood.
The captures showed something similiar to this
smallworlds game[LINK DELETED]
I have searched using tags such vb6,vb,vs6,social simulator,emulator,virtual world,ai and other tags that I cannot remember.
I hope somebody read that article and may give other details, or help me to find it.
Thanks.
|
|
|
|
|
Try a search for "game of life" here and you will fine several articles about Conway's Game of Life and a few about Cellular Automata.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Thanks for the suggestion. I am checking another tags such social computing, messaging, etc.
That simulation was more complex i think. The described "system" handled a lot of entities with messaging and syncronization.
It can be said it was a "cheap" sims game simulation. The article offered a capture showing an isometric world with inhabitants interacting.
I am searching how that it worked under the hood
Thanks again.
|
|
|
|
|
Just sayin
I'll get my coat.
Real programmers use butterflies
|
|
|
|
|
When you tell people about it, call it a cup.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
Obviously we (means CP) appreciate hard work even we do not understand a word of it...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
"mug's game:" if that's what you think, or, how you feel, why play the game ? what do you win, or lose ?
for me, the "great game" on CP is the pursuit of technical excellence, where "excellence" means improving myself through continual learning, not reaching some impossible (given my age, and priorities of other interests) degree of perfection. that CP provides a friendly context where that improvement can be fostered by my peers, and mentors: that's a blessing !
however, i must admit to occasionally wishing I could wake up and be Richard Deeming, or Marc Clifton, or OriginalGriff, or Pete O'Hanlon ... for a while !
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
BillWoodruff wrote: i must admit to occasionally wishing I could wake up and be Richard Deeming, or Marc Clifton, or OriginalGriff, or Pete O'Hanlon ... for a while I wish somebody would wake up and be me for a while... I could use a break .
Software Zen: delete this;
|
|
|
|
|
good idea: i often wish i could off-load certain parts of me onto some other person or ... goat.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
It was just a bad joke, Bill. Mug's game cuz you win a mug if you win
Real programmers use butterflies
|
|
|
|
|
Your puns are as inscrutable as your articles.
|
|
|
|
|
I thought this one was obvious!
Real programmers use butterflies
|
|
|
|
|
Greg Utas wrote: Your puns are as inscrutable as your articles. Witches do cast spells
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
apologies !
you actually win a mug, as in a physical cup ? wow ! i am like now so motivated to take a mug shot
thanks for alerting me to the rich meanings of that word: [^]
i stand ashamed, exposed as a muggle, not a mage.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
|
|
I'm an old man. Too "spacy" for me
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
I'm 70 and I like it!
Monday starts Diarrhea awareness week, runs until Friday!
JaxCoder.com
|
|
|
|
|
they were too spacey in the 1990s, let alone with 2020 vision.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|