lib/steamd/parser.rb
def load!
      return if loaded?

      Treetop.load("#{Steamd.grammar_dir}/shared.treetop")

      Dir.glob("#{Steamd.grammar_dir}/*.treetop") do |file|
        Treetop.load(file)
      end

      @parser = SteamdParser.new
      true
    end
def load!
      return if loaded?

      Treetop.load("#{Steamd.grammar_dir}/shared.treetop")

      Dir.glob("#{Steamd.grammar_dir}/*.treetop") do |file|
        Treetop.load(file)
      end

      @parser = SteamdParser.new
      true
    end
def load! return if loaded? Treetop . load ( "#{Steamd.grammar_dir}/shared.treetop" ) Dir . glob ( "#{Steamd.grammar_dir}/*.treetop" ) do | file | Treetop . load ( file ) end @parser = SteamdParser . new true end
Load the grammars

 @return [Bool] returns true unless an exception is thrown
Load the grammars