CodeSmith Generator 6.0 Template Parser Progress Report - Part 2

Posted by: Eric J. Smiths Weblog, on 02 Feb 2011 | View original | Bookmarked: 0 time(s)

In this post Im going to talk about how the new template parser in CodeSmith Generator 6.0 creates an AST (Abstract Syntax Tree) and then uses the visitor pattern to iterate over the nodes in the AST and do transformations. The grammar rules I talked about in my previous post are used to both validate the syntax of the template code and to create typed AST nodes.  Here is a very simple template: <%@ CodeTemplate Language="C#" %> <%= DateTime.Now %> The resulting...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD