is it possible to write an antlr4 program which executes the code on a dynamic list. As an example I have a list in Scala:
val list = List[String]("Data1","Data2","Data3","0,19 €")
I want a create a program which executes defined functions on this list. For example:
parseToDouble(3)
concat(1,3,parseToDouble(3))
The reason is simple. We have many csv files which contains any kind of data. Each one of this should have a dedicated execution command sequence to create a new file which fits our needs. Unluckily it is impossible to change the csv files.
If that is possible and I created the program. I want load this program and give the list of string as an parameter to the program like a knowledge base. How can I do this? Is their any tut to help me understand this way?
Thank you.