Пример #1
0
 protected override bool Visit(ASTSymbol node)
 {
     _lastNode = new CSymbol {
         Name = GetVariableName(node.Name)
     };
     return(true);
 }
Пример #2
0
        protected override bool Visit(ASTSymbol node)
        {
            if (_scope.TryGetTypeOf(node.Name, out var result))
            {
                node.TypeInfo = result;
                return(true);
            }

            Error(node.Position, $"Nothing defined called {node.Name}");
            return(false);
        }
Пример #3
0
 public bool Visit(ASTSymbol node)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 protected abstract bool Visit(ASTSymbol node);