blynn / nex

Lexer for Go
http://cs.stanford.edu/~blynn/nex/
GNU General Public License v3.0
418 stars 47 forks source link

emit same lexer code for same lexer source, by sorting edges #18

Closed xoba closed 9 years ago

xoba commented 9 years ago

problem was, that re-compiling same lexer source would often result in different code, with just the case statements permuted randomly... so, better to sort them first so that they're always output in the same order, resulting in unchanged code.