public LessOrEqualToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public GeneralStatementToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public StringVariableToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public RandomizeToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public SemicolonToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public TextToken(CodeParser Parser, String Content) : base(Parser, Content) { this.Content = Content; }
public EndOfLineToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public NumericFunctionToken(CodeParser Parser, String Content) : base(Parser, Content) { }
/// <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); }
public GreaterThenToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public NumericVariableToken(CodeParser Parser, String Content) : base(Parser, Content) { this.Content = Content; }
public LessThenToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public MultiplyToken(CodeParser Parser, String Content) : base(Parser, Content) { }
/// <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; }
public DivideToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public RightParenToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public ModulusToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public OrToken(CodeParser Parser, String Content) : base(Parser, Content) { }
public ReturnToken(CodeParser Parser, String Content) : base(Parser, Content) { }