You'd have to make a grammar first, java has one, I don't remember what it's called. You have to make sure that your grammar is LL(1) though. Java also has a tree builder, that one I know, it's called JTB. You can use that to make your concrete parse tree.