I'm working with embeded system, which has standard command set.
I need to store some of those commands in some kind of script file and then parse them sequentially(thr' java) and pass those commands to embeded system (thr' java).
Everything looks simple so far, but real challenge is handling conditional statements for e.g script/command file could be something like -
This looks pretty much same as parsing grammar, how can this be achieved in java? Especially conditional parsing and then choosing appropriate path in script.