Esempio n. 1
0
        /// <summary>
        /// Execute a variable declaration command
        /// </summary>
        /// <param name="command"></param>
        /// <returns></returns>
        public override ILanguageValue Visit(CommandDeclareVariable command)
        {
            var symbolValue = GMacRootAst.CreateDefaultValue(command.DataStore.SymbolType);

            ActiveAr.AddSymbolData(command.DataStore, symbolValue);

            return(null);
        }
Esempio n. 2
0
        public void Visit(CommandDeclareVariable command)
        {
            Log.AppendAtNewLine("declare ");

            Log.Append(command.DataStore.ObjectName);

            Log.Append(" : ");

            Log.AppendLine(command.DataStore.SymbolTypeSignature);
        }
        public TreeNode Visit(CommandDeclareVariable command)
        {
            var nodeName = "<DECLARE> " + command.DataStore.ObjectName + " : " + command.DataStore.SymbolTypeSignature;

            var node = new TreeNode(nodeName)
            {
                Tag = command
            };

            return(node);
        }
Esempio n. 4
0
 public override ILanguageValue Visit(CommandDeclareVariable command)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 internal AstCommandDeclare(CommandDeclareVariable command)
 {
     AssociatedCommandDeclare = command;
 }
Esempio n. 6
0
 public void Visit(CommandDeclareVariable command)
 {
     CompileVariable(command.DataStore);
 }
Esempio n. 7
0
 /// <summary>
 /// Execute the given command without returning any value
 /// </summary>
 /// <param name="command"></param>
 /// <returns>Should return null</returns>
 public abstract ILanguageValue Visit(CommandDeclareVariable command);
Esempio n. 8
0
 internal static AstCommandDeclare ToAstCommandDeclare(this CommandDeclareVariable command)
 {
     return(new AstCommandDeclare(command));
 }