convert string into code
in
Programming Questions
•
1 year ago
hi,
i was wondering, if you can take a string and parse it into code that processing executes.
so that you can take a string like this one
String a = "println("this works");"
and processing executes the println method
i am thinking about this, because i am working on a proejct that is getting pretty large, and i would like to take some segments of the code and put them in a txt file, so i can keep my processnig sketch a bit cleaner.
i was wondering, if you can take a string and parse it into code that processing executes.
so that you can take a string like this one
String a = "println("this works");"
and processing executes the println method
i am thinking about this, because i am working on a proejct that is getting pretty large, and i would like to take some segments of the code and put them in a txt file, so i can keep my processnig sketch a bit cleaner.
1