Sha256: 91d0cd7c77ed3d28797b0a388a9a90042626351e04eaaf30ab962f31dc9275ab

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

require 'salt/version'
require 'salt/scanner'
require 'salt/parser'
require 'salt/compiler'
require 'salt/walker'
require 'salt/cli'

module Salt
  def parse(path)
    parse_string(File.read(path))
  end

  def parse_string(string, source = '(eval)')
    tokens = Scanner.scan(string, source)
    ast = Parser.parse(tokens)
  end

  module_function :parse, :parse_string
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
salt-0.0.2 lib/salt.rb