C Code Parser
-
Hi, I have to wirte a Parser, and therfore I would need all the variables and functions definded in a C file. I realiced there is a class called Codedom, but don't know if it is what I search for. If not do you know any other ways to get variables and functions from a C-file? Thanks for your help. Dromar
-
Hi, I have to wirte a Parser, and therfore I would need all the variables and functions definded in a C file. I realiced there is a class called Codedom, but don't know if it is what I search for. If not do you know any other ways to get variables and functions from a C-file? Thanks for your help. Dromar
If you can read the code (for example from a file), compile it and investigate fields, functions etc without actually parsing it yourself, CodeDOM should be useful. If you really want to parse the original yourself, have a look at for example Yacc[^] which can also be found for Windows.
The need to optimize rises from a bad design
-
If you can read the code (for example from a file), compile it and investigate fields, functions etc without actually parsing it yourself, CodeDOM should be useful. If you really want to parse the original yourself, have a look at for example Yacc[^] which can also be found for Windows.
The need to optimize rises from a bad design
Just to make clear what I want. I have a Sourcefile (c, cpp, h...) and want to check if the pass certian programming rules (in my case the MISRA-C 2004 rules). Therefore I need all the Variables and Functions. Can I do that with the Codedom? And if yes can you please post me an example?
-
Just to make clear what I want. I have a Sourcefile (c, cpp, h...) and want to check if the pass certian programming rules (in my case the MISRA-C 2004 rules). Therefore I need all the Variables and Functions. Can I do that with the Codedom? And if yes can you please post me an example?
-
Hi, I have to wirte a Parser, and therfore I would need all the variables and functions definded in a C file. I realiced there is a class called Codedom, but don't know if it is what I search for. If not do you know any other ways to get variables and functions from a C-file? Thanks for your help. Dromar
Hi, take a look at Irony .NET. you can find references here in CP. It's well worth to take a look, I think it does what you want.
Intelligence is almost useless for those who have nothing else! Email: caiokf@gmail.com
-
Hi, take a look at Irony .NET. you can find references here in CP. It's well worth to take a look, I think it does what you want.
Intelligence is almost useless for those who have nothing else! Email: caiokf@gmail.com
Irony is quite good. As is PerCendburg(?) Grammatica. Used that for quite a few projects where I've had a configuration DSL.
Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
Alpha release: Entanglar: Transparant multiplayer framework for .Net games.