Two basic ANTLR questions
问题 I'm trying to use ANTLR to take a simple grammar and produce assembly output. My language of choice in ANTLR is Python. Many tutorials seem very complicated or elaborate on things that aren't relevant to me; I only really need some very simple functionality. So I have two questions: 'Returning' values from one rule to another. So let's say I have a rule like: assignment: name=IDENTIFIER ASSIGNMENT expression; I can run Python code in {}s when this rule is recognised, and I can pass args to