//package com.alibaba.druid.sql.dialect.mongo.parser;
//
//import com.alibaba.druid.sql.dialect.mongo.ast.JsLexer;
//import org.antlr.v4.runtime.CharStream;
//import org.antlr.v4.runtime.CharStreams;
//import org.antlr.v4.runtime.CommonTokenStream;
//import org.antlr.v4.runtime.Token;
//import java.util.Iterator;
//import java.util.List;
//
//public class Test {
//   public static void main(String[] args) {
//      String query = "db.emp.find({\"name\":1})";
//      CharStream stream = CharStreams.fromString(query);
//      JsLexer lexer = new JsLexer(stream);
//      CommonTokenStream tokenStream = new CommonTokenStream(lexer);
//      tokenStream.fill();
//      List<Token> tokens = tokenStream.getTokens();
//      Iterator var6 = tokens.iterator();
//
//      while(true) {
//         if (var6.hasNext())
//         Token token = (Token)var6.next();
//         System.out.println(token.getType() + "\t" + token.getText() + "");
//      }
//   }
//}
