gfish: (Default)
gfish ([personal profile] gfish) wrote2003-06-19 03:15 am

Context Free Poetry

Maybe this makes me a huge geek, but I really, really like working with lex and yacc. They make me happy. I just think about them and I smile.

In their honor, some very forced haiku*:

1 lex:
#.* ; /* Ignore all comments */
[0-9] return NUMBER; [^ \t\n\r] return WORD;
[ \t\n\r] ; /* Ignore all whitespace */

2 yacc:
poemdef: name body
name: NUMBER words body: words
words: WORD | words WORD


*Only italicized words should be counted for syllable purposes. '|' is pronounced as 'or'.

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting