jonatas/fast

View on GitHub
bin/console

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'
require 'fast'
require 'fast/sql'

def s(type, *children)
  Parser::AST::Node.new(type, children)
end

def code(string)
  Fast.ast(string)
end

def sql(string)
  Fast.parse_sql(string)
end

def reload!
  load 'lib/fast.rb'
end

require 'pry'
Pry.start