Ejemplo n.º 1
0
 public LessOrEqualToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 2
0
 public GeneralStatementToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 3
0
 public StringVariableToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 4
0
 public RandomizeToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 5
0
 public SemicolonToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 6
0
 public TextToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
     this.Content = Content;
 }
Ejemplo n.º 7
0
 public EndOfLineToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 8
0
 public NumericFunctionToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 9
0
        /// <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);
        }
Ejemplo n.º 10
0
 public GreaterThenToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 11
0
 public NumericVariableToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
     this.Content = Content;
 }
Ejemplo n.º 12
0
 public LessThenToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 13
0
 public MultiplyToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 14
0
 /// <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;
 }
Ejemplo n.º 15
0
 public DivideToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 16
0
 public RightParenToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 17
0
 public ModulusToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 18
0
 public OrToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }
Ejemplo n.º 19
0
 public ReturnToken(CodeParser Parser, String Content)
     : base(Parser, Content)
 {
 }