cfalk/PersonalWebsite — pull request #1 by eatonphil (2014-07-06 21:50:24+00:00)
Title: Multiline comments and full operator support

Def make this a separate git repo unless you seriously only want it as a toy. Also, I believe you are trying to recreate the hardest part of lexical analysis... That is, a regex engine.. When I wrote my lexer for hmm... whatever I wrote it for. I used regex to handle the brunt of the work. This will make you code much cleaner and much easier to understand. You see because what you're doing is lexical analysis. However, lexer's don't normally even handle this particular depth of picking at strings. You'll be able to get a lot more power out of using regex to identify tokens. You can build a nice framework around that easily enough that still gets you at something hardcore without chasing after a regex engine... Also, there are some good syntax highlighters out there. I use crayon... I'm not saying this because I'm against learning how things work. But in your blog you mentioned that you didn't want to build a blogging engine because more mature ones exist... That philosophy is a little contrary to what's going on here ;) But anyway, I put in multi-line comments for you. It should work. But I didn't check. Good luck!