antlr-syntactic-grammar-depth is a compiled Lisp function in `antlr-mode.el'.

(antlr-syntactic-grammar-depth POS BEG)

Return syntactic context depth at POS.
Move to POS and from there on to the beginning of the string or comment
if POS is inside such a construct. Then, return the syntactic context
depth at point if the point position is smaller than BEG.
WARNING: this may alter `match-data'.