예제 #1
0
            public override bool VisitLabel([NotNull] injectionParser.LabelContext context)
            {
                var name = context.SYMBOL()?.GetText();

                if (name != null)
                {
                    definitions[name] = context;
                }

                return(base.VisitLabel(context));
            }
예제 #2
0
        private void Generate(injectionParser.LabelContext context)
        {
            var label = context.SYMBOL().GetText();

            labels.Add(label, currentAddress);
        }
        public override bool VisitLabel([NotNull] injectionParser.LabelContext context)
        {
            declaredLabels.Add(context.SYMBOL().GetText());

            return(base.VisitLabel(context));
        }