SQLishParser.ts 228 B

1234567891011
  1. import type {Token} from 'sentry/views/starfish/utils/sqlish/types';
  2. import grammar from './sqlish.pegjs';
  3. export class SQLishParser {
  4. constructor() {}
  5. parse(sql: string) {
  6. return grammar.parse(sql) as Token[];
  7. }
  8. }