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.
That's just one idiot, not a flood.
He's a script kiddie - he's been posting crap like that all week, seeing what he can get through. Some did, which probably means a moderation error rather than a load of Chinese spammers.
Sent from my Amstrad PC 1640 Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
If your goal is to make it work, I strongly suggest a simple recursive descent parse (hand rolled)
Your grammar is tiny, man. And dice roll syntax is not going to change. It's not a programming language - there's nothing to evolve. So maintenance wise, as a former software architect by trade, I'd advise against employing said tool.
The rationale being it's at least as, if not easier to write the parser by hand rather than complicate your build process (even slightly)
But if your goal is to learn how to use a parser generator than keep going this route.
Either way, I'll continue to help. But i could have written that recursive descent dice parser 6 times over by now. =)
Your dice grammar is a keeper in any case, as i like things that break my code.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.