java updated java grammar and new

- update java grammar to match the JLS definitions by chapters
- attempt at implementing functional interface for pattern definitions