Ejemplo n.º 1
0
        public object VisitReadStatementAST([NotNull] ReadStatementASTContext context)
        {
            AddLine("LOAD_GLOBAL read");
            AddLine("CALL_FUNCTION 0");
            var scope = Visit(context.designator()) as string;
            var name  = context.designator().GetText();

            AddLine($"STORE_{scope} {name}");

            return(null);
        }
Ejemplo n.º 2
0
 public object VisitReadStatementAST([NotNull] ReadStatementASTContext context)
 {
     VisitChildren(context);
     return(new List <Pair <string, IToken> >());
 }