I want to translate a C application to .Net and thinking on how to automate the task. I don't need to "parse" and compile C files, rather I want to re-create a project structure, create a .Net classes corresponding the C files etc. Is there a sense to look at YACC/LEX tools and other parser generators? If I be able to create an AST from C code, maybe I can get a C# code from it?
Related Questions in C#
- Add additional fields to Linq group by
- couldn't copy pdb file to another directory while consuming wcf web service
- Why are the aliases for string and object in lowercase?
- WPF MessageBox Cancel checkbox check
- Resolve object using DI container with object instance
- Creating a parametrized field name for a SELECT clause
- Does compiler optimize operation on const variable and literal const number?
- Get data from one form to another form in C#
- Writing/Overwriting to specific XML file from ASP.NET code behind
- Deleting Orphans with Fluent NHibernate
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
Related Questions in YACC
- non- terminal symbol and symbol rules explain and especially is the expr reserved?
- Jison parser: Retrieve n number of text after a specific token
- Using lex to tokenize without failing
- What are the Bison/yacc grammars for these
- Trying to find Shift/Reduce conflict in Grammar
- menhir - associativity rules for reducing sequences of expressions
- Shift/reduce conflits on ocamlyacc
- flex 2.5.35 gives error when ctrl-M used in lex file
- Convert HTML table into plain text using Lex and Yacc
- Lex/Yacc: "line 1: syntax error, unexpected $end, expecting FUNCTION" lex compile error
Related Questions in ABSTRACT-SYNTAX-TREE
- Generate C++ style code using LLVM
- How to traverse all nodes of clang AST?
- deleting a if statements using ASTParser from a given .java file
- is there there way to access stylus AST
- JDT AstParser - How to get Assignment (parent) from MethodInvocation
- Obtaning the AST of JavaScript code from Spidermonkey
- Three-address code and symbol tables
- Alternate way to read a file as json using python
- HQL unexpected AST node:unexpected AST node:
- How can I evaluate a list of strings as a list of tuples in Python?
Related Questions in FSYACC
- Convert a ocamlyacc's Parser.mly file to fsyacc's Parser.fsy got " End of file on lexing stream" error
- FSlex/FSyacc crash - can't locate FSharp.Core assembly
- Meaningful errors during parsing with FSyacc
- Why is this fsyacc input producing F# that does not compile?
- FsLexYacc compile errors?
- Bug in a simple parser specification in F#
- How to capture a string without quote characters
- Eliminating shift/reduce errors for binary ops
- What is the fsyacc equivalent for the following ocamlyacc code?
- c -> c# translation, tools
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Found code2code to convert from c++ from
On second thought:
In general, you are most likely to benifit from redesigning the implementation and rewriting the code in C#. Many things that used to be many lines in C could be sometimes just one line when you use the power of the .NET libraries. You would get a smaller, more efficient and easier to mange code base.