void InitializeIDEHelpNode()
 {
     Kwconstructor = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     name          = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     KwStatic      = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     KwBase        = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
 }
 void InitializeIDEHelpNode()
 {
     colon    = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     brackets = new List <IDEHelpNode>();
     multiDim = new List <IDEHelpNode>();
     op       = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 public void BuildInTypeSetValue(string _value, int _line, int _col)
 {
     typeName = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode)
     {
         Value = _value, Line = _line, Col = _col
     };
 }
 void InitializeIDEHelpNode()
 {
     openSharpBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     endline        = new List <IDEHelpNode>();
     arrow          = new List <IDEHelpNode>();
     closeBrace     = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 public void UserDefinedTypeSetValue(string _value, int _line, int _col)
 {
     typeName = new IDEHelpNode(IDEHelpNode.NodeType.TypeNode)
     {
         Value = _value, Line = _line, Col = _col
     };
 }
 public IdentifierNode()
 {
     IdentValueReturn = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     IdentValue       = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     colon            = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     typeName         = new IDEHelpNode(IDEHelpNode.NodeType.TypeNode);
     typeName_kw      = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
 }
 void InitializeIDEHelpNode()
 {
     Kwfor      = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     openParen  = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     Kwin       = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     closeParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     openBrace  = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
        //public override IEnumerable<Node> getContingents()
        //{
        //    List<Node> contingents = new List<Node>();
        //    contingents.Add(FunctionBody);
        //    contingents.Add(Singnature);
        //    contingents.Add(Pattern);
        //    return contingents;
        //}

        //public override void ConsolidateNames(ref Dictionary<string, List<Node>> names)
        //{
        //    Dictionary<string, List<Node>> localNames = new Dictionary<string, List<Node>>();
        //    Singnature.ConsolidateNames(ref(localNames));
        //    //Pattern.ConsolidateNames(ref(localNames));
        //    FunctionBody.ConsolidateNames(ref(localNames));
        //    if (names.ContainsKey(Name))
        //    {
        //        throw new Exception();
        //    }
        //    List<Node> namelist = new List<Node>();
        //    namelist.Add(this);
        //    names.Add(Name, namelist);
        //}

        void InitializeIDEHelpNode()
        {
            KwStatic      = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
            Kwexternal    = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
            Kwnative      = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
            libOpenBrace  = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
            libCloseBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
            Kwdef         = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
            name          = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
            endLine       = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
        }
 // utilities added to store the pos info of tokens, for IDE use
 void InitializeIDEHelpNode()
 {
     Kwclass       = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     ClassName     = new IDEHelpNode(IDEHelpNode.NodeType.TypeNode);
     SuperClass    = new List <IDEHelpNode>();
     Kwextend      = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     openBrace     = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeBrace    = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     VarDeclCommas = new List <IDEHelpNode>();
     accessLabel   = new List <IDEHelpNode>();
 }
 public LanguageBlockNode()
 {
     languageblock = new LanguageCodeBlock();
     openBracket   = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     language      = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     closeBracket  = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     property      = new List <IDEHelpNode>();
     propertyValue = new List <StringNode>();
     openBrace     = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeBrace    = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 public ImportNode()
 {
     OpenParen       = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     CloseParen      = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     KwImport        = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     KwFrom          = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     Identifier      = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     KwPrefix        = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     PrefixIdent     = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     EndLine         = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     HasBeenImported = false;
 }
 void InitializeIDEHelpNode()
 {
     openParen  = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     comma      = new List <IDEHelpNode>();
 }
 public CharNode()
 {
     IDEValue = new IDEHelpNode(IDEHelpNode.NodeType.TextNode);
 }
Example #14
0
 public PostFixNode()
 {
     OperatorPos = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
Example #15
0
 public IdentifierNode()
 {
     
     IdentValueReturn = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     IdentValue = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     colon = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     typeName = new IDEHelpNode(IDEHelpNode.NodeType.TypeNode);
     typeName_kw = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
 }
Example #16
0
        //public override IEnumerable<Node> getContingents()
        //{
        //    List<Node> contingents = new List<Node>(1);
        //    contingents.Add(Expression);
        //    return contingents;
        //}
        /*
        public override void ConsolidateNames(ref Dictionary<string, List<Node>> names)
        {
            Expression.ConsolidateNames(ref(names));
        }*/

        void InitializeIDEHelpNode()
        {
            bitOr = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
        }
Example #17
0
  public DoubleNode()
 { sign = new IDEHelpNode(IDEHelpNode.NodeType.NumberNode); IDEValue = new IDEHelpNode(IDEHelpNode.NodeType.NumberNode);  }
Example #18
0
 void InitializeIDEHelpNode()
 {
     colon = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     brackets = new List<IDEHelpNode>();
     multiDim = new List<IDEHelpNode>();
     op = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
Example #19
0
 public void BuildInTypeSetValue(string _value, int _line, int _col)
 {
     typeName = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode) { Value = _value, Line = _line, Col = _col };
 }
Example #20
0
 // utilities added to store the pos info of tokens, for IDE use
 void InitializeIDEHelpNode()
 {
     Kwclass = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     ClassName = new IDEHelpNode(IDEHelpNode.NodeType.TypeNode);
     SuperClass = new List<IDEHelpNode>();
     Kwextend = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     openBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     VarDeclCommas = new List<IDEHelpNode>();
     accessLabel = new List<IDEHelpNode>();
 }
Example #21
0
 void InitializeIDEHelpNode()
 {
     Kwconstructor = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     name = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     KwStatic = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     KwBase = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
 }
Example #22
0
        //public override IEnumerable<Node> getContingents()
        //{
        //    return new List<Node>(Body);
        //}

        //public override void ConsolidateNames(ref Dictionary<string, List<Node>> names)
        //{
        //    //todo make a decision whether to pass out the local names.
        //    foreach (Node node in Body)
        //    {
        //        node.ConsolidateNames(ref(names));
        //    }
        //}


        void InitializeIDEHelpNode()
        {
            openBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
            closeBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
        }
Example #23
0
 void InitializeHelpNode()
 {
     openBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     comma = new List<IDEHelpNode>();
     closeBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
Example #24
0
 public VarDeclNode()
 {
     name = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     equal = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     KwStatic = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
 }
 public VarDeclNode()
 {
     name     = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     equal    = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     KwStatic = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
 }
Example #26
0
 public void UserDefinedTypeSetValue(string _value, int _line, int _col)
 {
     typeName = new IDEHelpNode(IDEHelpNode.NodeType.TypeNode) { Value = _value, Line = _line, Col = _col };
 }
        //public override IEnumerable<Node> getContingents()
        //{
        //    return new List<Node>(Body);
        //}

        //public override void ConsolidateNames(ref Dictionary<string, List<Node>> names)
        //{
        //    //todo make a decision whether to pass out the local names.
        //    foreach (Node node in Body)
        //    {
        //        node.ConsolidateNames(ref(names));
        //    }
        //}


        void InitializeIDEHelpNode()
        {
            openBrace  = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
            closeBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
        }
Example #28
0
        //public override IEnumerable<Node> getContingents()
        //{
        //    List<Node> contingents = new List<Node>();
        //    contingents.Add(FunctionBody);
        //    contingents.Add(Singnature);
        //    contingents.Add(Pattern);
        //    return contingents;
        //}

        //public override void ConsolidateNames(ref Dictionary<string, List<Node>> names)
        //{
        //    Dictionary<string, List<Node>> localNames = new Dictionary<string, List<Node>>();
        //    Singnature.ConsolidateNames(ref(localNames));
        //    //Pattern.ConsolidateNames(ref(localNames));
        //    FunctionBody.ConsolidateNames(ref(localNames));
        //    if (names.ContainsKey(Name))
        //    {
        //        throw new Exception();
        //    }
        //    List<Node> namelist = new List<Node>();
        //    namelist.Add(this);
        //    names.Add(Name, namelist);
        //}

        void InitializeIDEHelpNode()
        {
            KwStatic = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
            Kwexternal = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
            Kwnative = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
            libOpenBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
            libCloseBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
            Kwdef = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
            name = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
            endLine = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
        }
Example #29
0
 public StringNode()
 {
     IDEValue = new IDEHelpNode(IDEHelpNode.NodeType.TextNode); 
 }
Example #30
0
 public ParenExpressionNode()
 {
     openParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 void InitializeIDEHelpNode()
 {
     op      = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     stepOp  = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     stepOp2 = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
Example #32
0
 public UnaryExpressionNode()
 {
     op = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 public StatementNode()
 {
     Statement = null;
     endLine   = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
Example #34
0
 public LanguageBlockNode()
 {
     languageblock = new LanguageCodeBlock(); 
     openBracket = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     language = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     closeBracket = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     property = new List<IDEHelpNode>();
     propertyValue = new List<StringNode>();
     openBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 public PostFixNode()
 {
     OperatorPos = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
Example #36
0
 public InlineConditionalNode()
 {
     Question = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     Colon = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 public DoubleNode()
 {
     sign = new IDEHelpNode(IDEHelpNode.NodeType.NumberNode); IDEValue = new IDEHelpNode(IDEHelpNode.NodeType.NumberNode);
 }
Example #38
0
 void Assoc_negop(out DesignScript.Parser.Associative.IDEHelpNode op)
 {
     op = new Associative.IDEHelpNode(Associative.IDEHelpNode.NodeType.PunctuationNode);
     if (la.kind == 1 || la.kind == 9 || la.kind == 50) {
     } else if (la.kind == 12) {
     Get();
     op.SetValue(t.val, t.line, t.col);
     } else SynErr(102);
 }
 public StringNode()
 {
     IDEValue = new IDEHelpNode(IDEHelpNode.NodeType.TextNode);
 }
Example #40
0
 void InitializeIDEHelpNode()
 {
     op = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     stepOp = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     stepOp2 = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
        //public override IEnumerable<Node> getContingents()
        //{
        //    List<Node> contingents = new List<Node>(1);
        //    contingents.Add(Expression);
        //    return contingents;
        //}

        /*
         * public override void ConsolidateNames(ref Dictionary<string, List<Node>> names)
         * {
         *  Expression.ConsolidateNames(ref(names));
         * }*/

        void InitializeIDEHelpNode()
        {
            bitOr = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
        }
Example #42
0
 public ImportNode()
 {
     OpenParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     CloseParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     KwImport = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     KwFrom = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     Identifier = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     KwPrefix = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     PrefixIdent = new IDEHelpNode(IDEHelpNode.NodeType.IdentNode);
     EndLine = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     HasBeenImported = false;
 }
 void InitializeHelpNode()
 {
     openBrace  = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     comma      = new List <IDEHelpNode>();
     closeBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
Example #44
0
 void InitializeIDEHelpNode()
 {
     Kwfor = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     openParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     Kwin = new IDEHelpNode(IDEHelpNode.NodeType.KeywordNode);
     closeParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     openBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 public ParenExpressionNode()
 {
     openParen  = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
Example #46
0
 void InitializeIDEHelpNode()
 {
     openParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     closeParen = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     comma = new List<IDEHelpNode>();
 }
Example #47
0
 public StatementNode()
 {
     Statement = null;
     endLine = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 public UnaryExpressionNode()
 {
     op = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
 public InlineConditionalNode()
 {
     Question = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     Colon    = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }
Example #50
0
 public CharNode()
 {
     IDEValue = new IDEHelpNode(IDEHelpNode.NodeType.TextNode);
 }
Example #51
0
 void Assoc_unaryop(out DesignScript.Parser.Associative.IDEHelpNode IDEop)
 {
     IDEop = new Associative.IDEHelpNode(Associative.IDEHelpNode.NodeType.PunctuationNode);
     if (la.kind == 11) {
     Get();
     IDEop.SetValue(t.val, t.line, t.col);
     } else if (la.kind == 65) {
     Get();
     IDEop.SetValue(t.val, t.line, t.col);
     #if ENABLE_INC_DEC_FIX
     } else if (la.kind == 66 || la.kind == 67) {
     Associative_PostFixOp(ref IDEop);
     #endif
     } else SynErr(100);
     #if ENABLE_INC_DEC_FIX
     #else
     if (la.val == "++" || la.val == "--") Get();
     #endif
 }
Example #52
0
 void InitializeIDEHelpNode()
 {
     openSharpBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
     endline = new List<IDEHelpNode>();
     arrow = new List<IDEHelpNode>();
     closeBrace = new IDEHelpNode(IDEHelpNode.NodeType.PunctuationNode);
 }