Generating an Atomaton
Thanks for the input! Â I went with nil. Â It is more concise and less to type.
I also finished the NFA code. Â Currently it only builds the NFA structure; it can't execute anything. Â So, I was playing around with it and I thought I'd implement part of a scanner by hand, just for a test. Â Here are nodes for scanning string literal, integer, and identifier.
It dumps out its data in GraphVis format, which produces a cute little picture like this. Â Next up is to have it generate an NFA from regex.Â

















