Skip to content

Temporal Wave LLC

 
You are here: Home
C# 3.0 Parser Kit PDF Print E-mail

The Temporal Wave C# parser kit is available in Java versions right now, with C and C# versions to follow very shortly. This is a full featured lexer, parser and AST walker for the very latest Microsoft published specification for C# 3.0, as supported by the .Net Framework SDK 3.5 and Visual Studio 2008.

Try the parser kit online!! (new window)

Features

The lexer fully supports the C# pre-processing directives and namespace and provides conditional parsing/lexing as per the C# specifications. Tokens that are excluded from parsing are still provided to the parser and AST walker, but on a hidden parsing channel. This allows them to be accessed and used to reconstruct the original source code for applications such as code formatters and annotators.

The parser is fully compliant with the latest Microsoft and EMCA specifications, including parsing ans producing trees for:

  • Language INtegrated Queries (LINQ)
  • Generics
  • Lambda Operator (in-line assignment of expressions to delegates)
  • Unicode identifiers and strings etc

The parser produces a well tested Abstract Syntax Tree (AST), and the kit also comes with an AST Walker with which you can make multiple passes of the tree, each of which can modify the AST. For instance, build a symbol table in one pass, then parse the tree for high level code optimization and modify it, then parse the tree for intermediate language generation (and so on).

The parser kit can be used for anything from writing formatters, additional semantic checking over the MS compiler, language translation, annotation, and just about any application that requires true parsing of the source. Note however, that this parser kit does NOT include code for building .Net symbol tables (though we may release such a product in the future).

License

The usual Temporal Wave commercial source code license, providing royalty free distribution of binaries built with the supplied source code, free support and free updates for the life of the product.

 
< Prev   Next >

New Article Feed

Temporal Wave Parsers