In the university they ask me for use grammar and Pushdown automaton to check the syntax of a portion of Java code. Due i have not used this automaton before, i have learnt a bit about how they work and i think that this automaton is not very useful in the check of code syntax because the pushdown automaton is used to verify a grammar with some proportion between any token like "0^n 1^2n | n >= 0".
This proportions between tokens are not present in code syntax, therefore i think that the pushdown automaton is not useful in this case.
- I'm right?
- do i have to complain about this work they ask me for?