Example #1
0
                public static SortedStringSet GetCommands()
                {
                    var commands = new SortedStringSet();

                    commands.Add(include);
                    commands.Add(show);
                    commands.Add(load);
                    commands.Add(reset);
                    commands.Add(reload);
                    commands.Add(terminate);
                    commands.Add(push);
                    commands.Add(pop);

                    foreach (var command in clearscreen.ToList())
                    {
                        commands.Add(command);
                    }

                    foreach (var command in gethelp.ToList())
                    {
                        commands.Add(command);
                    }

                    return(commands);
                }
Example #2
0
        public static SortedStringSet GetParameterOrientations()
        {
            var operators = new SortedStringSet();

            foreach (string op in inparameter.ToList())
            {
                operators.Add(op);
            }

            foreach (string op in outparameter.ToList())
            {
                operators.Add(op);
            }

            return(operators);
        }
Example #3
0
        public static SortedStringSet GetAssignmentOperators()
        {
            var operators = new SortedStringSet();

            foreach (string op in right_to_left.ToList())
            {
                operators.Add(op);
            }

            foreach (string op in left_to_right.ToList())
            {
                operators.Add(op);
            }

            return(operators);
        }
Example #4
0
        public static SortedStringSet GetPermissionOperators()
        {
            var operators = new SortedStringSet();

            foreach (string op in readonlyvalue.ToList())
            {
                operators.Add(op);
            }

            foreach (string op in writeonlyvalue.ToList())
            {
                operators.Add(op);
            }

            foreach (string op in readwritevalue.ToList())
            {
                operators.Add(op);
            }

            return(operators);
        }
Example #5
0
        public static SortedStringSet GetUnaryOperators()
        {
            var operators = new SortedStringSet();

            foreach (string op in negative.ToList())
            {
                operators.Add(op);
            }

            foreach (string op in opposite.ToList())
            {
                operators.Add(op);
            }

            foreach (string op in bidirectional.ToList())
            {
                operators.Add(op);
            }

            return(operators);
        }
Example #6
0
        private static bool Push(string name, List <string> typenames, Definition newDef)
        {
            string key = GetKey(name, typenames);

            if (_table.ContainsKey(key))
            {
                return(false);
            }

            _table.Add(key, newDef);
            _tree.Add(new DefinitionId(name, typenames, newDef));
            _key_names.Add(name);

            return(true);
        }
Example #7
0
            public static SortedStringSet GetVerbs()
            {
                var commands = new SortedStringSet();

                foreach (var verb in Verbs.declare.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.assign.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.clear.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.release.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.increment.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.decrement.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.addto.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.subtractfrom.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.multiplyby.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.divideby.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.remainderfrom.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.input.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.inputline.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.output.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.outputline.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.error.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.errorline.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.returnvalue.ToList())
                {
                    commands.Add(verb);
                }
                foreach (var verb in Verbs.callprocess.ToList())
                {
                    commands.Add(verb);
                }

                return(commands);
            }