Beispiel #1
0
 public GramTokenizer(TextReader reader, IStringSliceProvider sliceProvider)
     : base(reader, sliceProvider)
 {
     m_specIdentStart       = '@';
     m_checkIdentCase       = true;
     m_supportsStringDouble = true;
     m_supportsStringSingle = true;
 }
Beispiel #2
0
 public TokenizerBase(TextReader reader, IStringSliceProvider sliceProvider)
 {
     m_reader      = reader;
     Current       = TokenType.None;
     SliceProvider = sliceProvider;
     m_currentChar = m_reader.Read(); m_position++;
     m_nextChar    = m_reader.Read(); m_position++;
     m_symbols     = GetSymbols();
 }
Beispiel #3
0
 public SqlTokenizer(TextReader reader, IStringSliceProvider sliceProvider, ISqlDialect dialect)
     : base(reader, sliceProvider)
 {
     m_supportsStringSingle = true;
     if (dialect != null)
     {
         m_stringEscape    = dialect.StringEscapeChar;
         m_quoteIdentBegin = dialect.QuoteIdentBegin;
         m_quoteIdentEnd   = dialect.QuoteIdentEnd;
     }
 }
Beispiel #4
0
        public virtual ISqlTokenizer CreateTokenizer(TextReader reader, IStringSliceProvider sliceProvider)
        {
            var res = new SqlTokenizer(reader, sliceProvider, this);

            return(res);
        }
Beispiel #5
0
 public override ISqlTokenizer CreateTokenizer(TextReader reader, IStringSliceProvider sliceProvider)
 {
     return(new MySqlTokenizer(reader, sliceProvider, this));
 }
Beispiel #6
0
 public virtual ISqlTokenizer CreateTokenizer(System.IO.TextReader reader, IStringSliceProvider sliceProvider)
 {
     return(m_dialect.CreateTokenizer(reader, sliceProvider));
 }
Beispiel #7
0
 public MySqlTokenizer(TextReader reader, IStringSliceProvider sliceProvider, ISqlDialect dialect)
     : base(reader, sliceProvider, dialect)
 {
     m_supportsStringDouble = true;
 }