Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Updating Expressions in a C++ program using the CDT without eclipse(I am able to parse a c++ file, get the translation unit without using eclipse)
Updating Expressions in a C++ program using the CDT without eclipse [message #1793632] Sun, 12 August 2018 19:06 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 12
Registered: December 2010
Junior Member
I used
https://github.com/ricardojlrufino/eclipse-cdt-standalone-astparser
and works well to come up with a translationunit.

But I need to
1. find an expression
x = 5
2. change it to x =7
3. Save the new cpp file (the one with x=7) to a new file.
The changing and saving is where I am stumped. Any examples would be appreciated.

When I say without eclipse, I don't mind simulating it, I just don't know how to.
Re: Updating Expressions in a C++ program using the CDT without eclipse [message #1793633 is a reply to message #1793632] Sun, 12 August 2018 23:51 Go to previous message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 12
Registered: December 2010
Junior Member
I have seen a document to help with java but it does not help with cpp
https://www.eclipse.org/articles/Article-JavaCodeManipulation_AST/#app-code-fragments-example

Previous Topic:Program "XXXg++" not found in path
Next Topic:Introducing the Arduino C++ IDE
Goto Forum:
  


Current Time: Sun Sep 23 16:05:23 GMT 2018

Powered by FUDForum. Page generated in 0.01569 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top