public void AddCSharpCode(string key, string data)
 {
     if (!DefinitionList.ContainsKey(key))
     {
         DefinitionList.Add(key, data);
     }
 }
        public Node DefList()
        {
            var defList = new DefinitionList();

            while (Current == TokenCategory.VAR || Current == TokenCategory.IDENTIFIER)
            {
                defList.Add(Def());
            }
            return(defList);
        }
Esempio n. 3
0
        public Node DefList()
        {
            var defList = new DefinitionList()
            {
            };

            while (firstOfDeclaration.Contains(CurrentToken))
            {
                defList.Add(Def());
            }

            return(defList);
        }
Esempio n. 4
0
        public Node Program()
        {
            var defList = new DefinitionList();

            while (firstOfDefinition.Contains(CurrentToken))
            {
                defList.Add(Definition());
            }

            var result = new Program()
            {
                defList
            };

            result.AnchorToken = Expect(TokenCategory.EOF);

            return(result);
        }