Example #1
0
        //Finds the current symbol in dividers table
        protected void SemanticProcedure4()
        {
            string curSymbol = machine.GetBufferContent();

            if (curSymbol[0] == ' ' || curSymbol[0] == '\t')
            {
                return;
            }

            if (!machine.GetDividersTable().ContainsKey(curSymbol))
            {
                machine.AddDivider(curSymbol); //Add new operator to the operators table
            }
            machine.AddLexeme(machine.GetDividersTable()[curSymbol]);
        }