The 5 minute "I'm bored at work" tokenizer
BlitzMax Forums/BlitzMax Programming/The 5 minute "I'm bored at work" tokenizer
| ||
Well. I wanted to make syntax highlighting for my LUA based script language so I wrote this in 5 mins. It parses a line at a time, but stores the entire token list + seperator list inside the type. My idea is to only parse the line the user is editing and then color code it accordingly. I think it will work fine for my simple scripting language. Anyhoo, here it is, shared with the world :) I'll keep you guys posted and post the code for a simply LUA highlighting text component as soon as it's done. |