Example #1
0
		private RantCompiler(string sourceName, string source)
		{
			_sourceName = sourceName;
			_source = source;
			_reader = new TokenReader(sourceName, RantLexer.GenerateTokens(sourceName, source.ToStringe()));
			_expressionCompiler = new RantExpressionCompiler(sourceName, source, _reader, this);
		}
Example #2
0
        public RantCompiler(string sourceName, string source)
        {
			Module = new RantModule(sourceName);

            this.source = source;
            this.sourceName = sourceName;

            reader = new TokenReader(sourceName, RantLexer.GenerateTokens(sourceName, source.ToStringe()));
            expressionCompiler = new RantExpressionCompiler(sourceName, source, reader, this);

            Parselet.SetCompilerAndReader(this, reader);
        }
Example #3
0
        public RantCompiler(string sourceName, string source)
        {
            Module = new RantModule(sourceName);

            this.source     = source;
            this.sourceName = sourceName;

            reader             = new TokenReader(sourceName, RantLexer.GenerateTokens(sourceName, source.ToStringe()));
            expressionCompiler = new RantExpressionCompiler(sourceName, source, reader, this);

            Parselet.SetCompilerAndReader(this, reader);
        }