views:

95

answers:

3

During the Compiler Design Lab hours, I'm using JLex as the Lexical Analyzer Generator, which produces a Java program from a lexical specification.

I'd like to know if there are other tools which can help me in the same by generating C/C++/C# or VB programs instead of a Java program, and can run in Windows.

+4  A: 

Lex (and its variants like Flex) should be a starting point. You can download the Windows ports of these to get started. The output is in C. Additionally, look for yacc and bison if you want parser generators too. Here is a comprehensive page for all four.

dirkgently
+3  A: 
  • C#
    • GPLEx is a generator for lexical scanners accepting a “LEX-like” input specification and produces a C# output file (C# 2 with generics).
    • Grammatica is a C# and Java parser generator
    • ANTLR parser generator that supports generating code in C, Java, Python, C#, and Objective-C
    • C# Lex
    • C# Flex
  • Java
  • C/C++
madgnome
+1  A: 

Ragel can generate fast lexical analyzers from a regular language in C, C++, Objective-C, D, Java, and Ruby.

Hasturkun