LOL, apparently the forum’s ```routeros
marks use a pretty poor coloring scheme and syntax scheme too. While not the whole story in “static schemas/AST”, for example /console/inspect
gets you all the command, directory (like ip, interface, etc), and arguments. So those could always be used to “update” a static grammar with the current set of things — perhaps with curation since there are 70k worth of keywords for example.
See this thread for one example of potentially “augmenting” a static/regex .rsc
grammar with /console/inspect request=child
data.