Alex Rivera | Logout

Parser How To in .NET

Asked 2009-10-15T20:05:02.400
11

I'd like to understand how to construct a parser in .NET to process source files. For example, maybe I could begin by learning how to parse SQL or HTML or CSS and then act on the results to be able to format them for readability or something similar.

Where can I learn how to do this? Are there specific books I can refer to? Do I need to learn about lexers/parsers?

Specifically for the .NET platform since I'm comfortable in C#.

Edit
Report

1 Answer

1

C# has come a long ways since 2.0. The recent addition of expression trees and dynamic typing makes things a lot more interesting for implementing compilers.

Here is a tutorial on how to create an interpreter in C# 4.0 at CodeProject.com.

answered 2011-10-23T15:44:46.210

Your Answer