public LexerScanner(TextReader reader, Context context) { this.lexer = new LexerMarker(reader); this.context = context; this.executorCharacter = context.ExecutorCharacter; this.seperatorCharacter = context.SeparatorCharacter; this.listEncapsulation = context.ListEncapsulation; this.vectorEncapsulation = context.VectorEncapsulation; this.setEncapsulation = context.SetEncapsulation; this.scalarEncapsulation = context.ScalarEncapsulation; this.literalEncapsulation = context.LiteralEncapsulation; }
//private bool IsSystemTextIdentifier(string s) //{ // return s == "define" || s == "instantiate"; // //s.Equals("if") || s.Equals("then") || s.Equals("else") // //|| s.Equals("elseif") || s.Equals("while") || s.Equals("do") // //|| s.Equals("for") || s.Equals("end"); //} #endregion #region Reset /// <summary>Clear the buffer. Replace the current stream with a new one.</summary> public void Reset(TextReader reader, Context context) { lexer.Reset(reader); this.context = context; this.executorCharacter = context.ExecutorCharacter; this.seperatorCharacter = context.SeparatorCharacter; this.listEncapsulation = context.ListEncapsulation; this.vectorEncapsulation = context.VectorEncapsulation; this.setEncapsulation = context.SetEncapsulation; this.scalarEncapsulation = context.ScalarEncapsulation; this.literalEncapsulation = context.LiteralEncapsulation; }
public LexerScanner(TextReader reader) { if(reader == null) throw new ArgumentNullException("reader"); this.lexer = new LexerMarker(reader); this.library = Service<ILibrary>.Instance; this.executorCharacter = Config.ExecutorCharacter; this.seperatorCharacter = Config.SeparatorCharacter; this.listEncapsulation = Config.ListEncapsulation; this.vectorEncapsulation = Config.VectorEncapsulation; this.setEncapsulation = Config.SetEncapsulation; this.scalarEncapsulation = Config.ScalarEncapsulation; this.literalEncapsulation = Config.LiteralEncapsulation; }
//private bool IsSystemTextIdentifier(string s) //{ // return s == "define" || s == "instantiate"; // //s.Equals("if") || s.Equals("then") || s.Equals("else") // //|| s.Equals("elseif") || s.Equals("while") || s.Equals("do") // //|| s.Equals("for") || s.Equals("end"); //} #endregion #region Reset /// <summary>Clear the buffer. Replace the current stream with a new one.</summary> public void Reset(TextReader reader) { if (reader == null) { throw new ArgumentNullException("reader"); } lexer.Reset(reader); this.executorCharacter = Config.ExecutorCharacter; this.seperatorCharacter = Config.SeparatorCharacter; this.listEncapsulation = Config.ListEncapsulation; this.vectorEncapsulation = Config.VectorEncapsulation; this.setEncapsulation = Config.SetEncapsulation; this.scalarEncapsulation = Config.ScalarEncapsulation; this.literalEncapsulation = Config.LiteralEncapsulation; }
public LexerScanner(TextReader reader, Context context) { if(context == null) throw new ArgumentNullException("context"); if(reader == null) throw new ArgumentNullException("reader"); this.lexer = new LexerMarker(reader); this.context = context; this.executorCharacter = context.ExecutorCharacter; this.seperatorCharacter = context.SeparatorCharacter; this.listEncapsulation = context.ListEncapsulation; this.vectorEncapsulation = context.VectorEncapsulation; this.setEncapsulation = context.SetEncapsulation; this.scalarEncapsulation = context.ScalarEncapsulation; this.literalEncapsulation = context.LiteralEncapsulation; }
public LexerScanner(TextReader reader) { if (reader == null) { throw new ArgumentNullException("reader"); } this.lexer = new LexerMarker(reader); this.library = Service <ILibrary> .Instance; this.executorCharacter = Config.ExecutorCharacter; this.seperatorCharacter = Config.SeparatorCharacter; this.listEncapsulation = Config.ListEncapsulation; this.vectorEncapsulation = Config.VectorEncapsulation; this.setEncapsulation = Config.SetEncapsulation; this.scalarEncapsulation = Config.ScalarEncapsulation; this.literalEncapsulation = Config.LiteralEncapsulation; }
//private bool IsSystemTextIdentifier(string s) //{ // return s == "define" || s == "instantiate"; // //s.Equals("if") || s.Equals("then") || s.Equals("else") // //|| s.Equals("elseif") || s.Equals("while") || s.Equals("do") // //|| s.Equals("for") || s.Equals("end"); //} #endregion #region Reset /// <summary>Clear the buffer. Replace the current stream with a new one.</summary> public void Reset(TextReader reader, Context context) { if (context == null) { throw new ArgumentNullException("context"); } if (reader == null) { throw new ArgumentNullException("reader"); } lexer.Reset(reader); this.context = context; this.executorCharacter = context.ExecutorCharacter; this.seperatorCharacter = context.SeparatorCharacter; this.listEncapsulation = context.ListEncapsulation; this.vectorEncapsulation = context.VectorEncapsulation; this.setEncapsulation = context.SetEncapsulation; this.scalarEncapsulation = context.ScalarEncapsulation; this.literalEncapsulation = context.LiteralEncapsulation; }
/// <summary>Clear the buffer. Replace the current stream with a new one.</summary> public void Reset(TextReader reader) { if(reader == null) throw new ArgumentNullException("reader"); lexer.Reset(reader); this.executorCharacter = Config.ExecutorCharacter; this.seperatorCharacter = Config.SeparatorCharacter; this.listEncapsulation = Config.ListEncapsulation; this.vectorEncapsulation = Config.VectorEncapsulation; this.setEncapsulation = Config.SetEncapsulation; this.scalarEncapsulation = Config.ScalarEncapsulation; this.literalEncapsulation = Config.LiteralEncapsulation; }