I saw this and I wondered how fancy you were in implementing the generator. It looks like just random tokens, though. Hidden Markov chains of even length 2 would produce something that looked a lot more code-like. I wonder how long the chains would need to be before you usually get something that compiles?
Anybody ever played with this? HMC of English, I've played with. Code, not so much.
Originally posted by Ernest Friedman-Hill: I saw this and I wondered how fancy you were in implementing the generator. It looks like just random tokens, though...
Generator? I spent weeks writing this by hand in Notepad!
I nested some 50/50 "if" statements to vary the mix of keywords, new lines, numbers, tabs, etc. But it's very haphazard.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org