I need to create a lexical analyzer for a class that I am in. It needs to read in a program and see if it matches a simple grammer. Is there some easy way to do this with regular expressions, or does someone have some code to help me get started. I'm kinda stumped right now as I have never done anything like this before.
My open-source C# expression parser LazyParser.NET uses a tokenizer based on regular expression. It's a great example on how to use regular expression for parsing simple grammer.