Module: Bsm::BsmParse

Defined in:
lib/bsm/bsm_parse.rb

Overview

Parser module, wraps the native functions with some error handling

Class Method Summary collapse

Class Method Details

.compile_to_ast(string) ⇒ Object



12
13
14
15
16
# File 'lib/bsm/bsm_parse.rb', line 12

def self.compile_to_ast(string)
  return bsm_parse_compile_to_ast(string) if string.is_a? String

  raise 'Invalid type given. This method only accepts strings'
end

.runtest(hello) ⇒ Object



8
9
10
# File 'lib/bsm/bsm_parse.rb', line 8

def self.runtest(hello)
  bsm_parse_test(hello)
end