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?
c -> c# translation, tools
1.6k Views Asked by Denis Mitropolskiy At
1
There are 1 best solutions below
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
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
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
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
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
- How to make a specific rule in Yacc to reduce first before the other rule?
- Lex Yacc parser compiling get few errors tried searching solution cant find
- shift/reduce conflict in simple C grammar
- Error: "expected identifier or '(' before '%' token" (Csimple parser in yacc)
- segmentation fault (core dumped) in Lex/Bison- related to yyparse()
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?
- Parse Python Function's Class Name
- Custom Lint for Java / Android Report if we find a class call without implementing its interface
- How can I detect by static analysis, if a project is using Java8?
- Is it possible to work with AST inside D code?
- Java Runtime Compiling within scope
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
- Fsyacc: an item with the same key has been added
- Extending example grammar for Fsyacc with unary minus
- Parsing a sequence of expressions using yacc
- Using FsLex/Yacc in Vs2013
- FsYacc filename.targets
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)
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?
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.