示例#1
0
 public LessOrEqualToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#2
0
 public GeneralStatementToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#3
0
 public StringVariableToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#4
0
 public RandomizeToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#5
0
 public SemicolonToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#6
0
 public TextToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
     this.Content = Content;
 }
示例#7
0
 public EndOfLineToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#8
0
 public NumericFunctionToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#9
0
文件: Basic.cs 项目: Punk-Sky/PunkOS
        /// <summary>
        /// Create a new BASIC Interpreter Instance
        /// </summary>
        /// <param name="Program">Program to excecute</param>
        /// <param name="CustomTokens">Custom Tokens</param>
        public Basic(String SourceCode, CodeParser.KeywordTokenConstructor[] CustomTokens)
        {
            for (byte i = 0; i < 26; i++)
            {
                NumericVariables.Add(new NumericBasicVariable(((char) (((char)i) + 'a')).ToString(), 0));
            }

            // Remove carrage return from sourcecode
            this.SourceCode = "";
            foreach (char c in SourceCode)
            {
                if (c != '\r')
                    this.SourceCode += c;
            }

            this.GOSUBStackPosition = 0;
            this.FORStackPosition = 0;
            this.WHILEStackPosition = 0;
            this.Ended = false;
            this.DontExectuteIF = false;
            this.CodeParser = new CodeParser(this.SourceCode, CustomTokens);
            this.NumericModifier = new NumericModifiers(this);
            this.StringModifier = new StringModifiers(this);
        }
示例#10
0
 public GreaterThenToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#11
0
 public NumericVariableToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
     this.Content = Content;
 }
示例#12
0
 public LessThenToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#13
0
 public MultiplyToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#14
0
文件: Token.cs 项目: Punk-Sky/PunkOS
 /// <summary>
 /// Instantiate a new Token
 /// </summary>
 /// <param name="Type">Type of Token</param>
 /// <param name="Content">Contents of Token</param>
 public Token(CodeParser Parser, String Content)
 {
     this.Parser = Parser;
     //this.Content = Content;
 }
示例#15
0
 public DivideToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#16
0
 public RightParenToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#17
0
 public ModulusToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#18
0
 public OrToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
示例#19
0
 public ReturnToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }