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: 13
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: 13
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 Jan 19 04:20:03 GMT 2025

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

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

Back to the top