Hi I'd like to make my own 'parser', e.g: computing (4+(3-4^2))*2 or parsing java,jsf,html code.
In fact I did something like this but I feel it's not good.
Is there anything good for me? I've tried to read more, but I'm bit confused, LL, LR, AST,BNF,javacc yacc etc :). I'm not sure which way to go, when I would like to compute 4+...
or if I'd like to parse java,jsf code and produce something from this(another java code)
Is there anything generaly good enough like ast? or something which I can use for both?
thank you for help.