From 73ae5820f8c0e11c6a374c309e0c20581c2deb38 Mon Sep 17 00:00:00 2001 From: Clifford Heath Date: Fri, 21 Aug 2009 10:00:48 +1000 Subject: [PATCH] Removed Ruby warnings --- lib/treetop/compiler.rb | 2 +- lib/treetop/compiler/node_classes/character_class.rb | 2 +- lib/treetop/version.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/treetop/compiler.rb b/lib/treetop/compiler.rb index 5ccc72d..75b4893 100644 --- a/lib/treetop/compiler.rb +++ b/lib/treetop/compiler.rb @@ -2,5 +2,5 @@ require File.join(dir, *%w[compiler lexical_address_space]) require File.join(dir, *%w[compiler ruby_builder]) require File.join(dir, *%w[compiler node_classes]) -require File.join(dir, *%w[compiler metagrammar]) unless $exclude_metagrammar +require File.join(dir, *%w[compiler metagrammar]) unless defined?($exclude_metagrammar) require File.join(dir, *%w[compiler grammar_compiler]) diff --git a/lib/treetop/compiler/node_classes/character_class.rb b/lib/treetop/compiler/node_classes/character_class.rb index 7e82346..2874980 100644 --- a/lib/treetop/compiler/node_classes/character_class.rb +++ b/lib/treetop/compiler/node_classes/character_class.rb @@ -10,7 +10,7 @@ def compile(address, builder, parent_expression = nil) builder << "@index += 1" end builder.else_ do - "terminal_parse_failure(#{single_quote(characters)})" + # "terminal_parse_failure(#{single_quote(characters)})" assign_result 'nil' end end diff --git a/lib/treetop/version.rb b/lib/treetop/version.rb index 9e00359..1ddf8ab 100644 --- a/lib/treetop/version.rb +++ b/lib/treetop/version.rb @@ -2,7 +2,7 @@ module Treetop #:nodoc: module VERSION #:nodoc: MAJOR = 1 MINOR = 3 - TINY = 1 + TINY = 2 STRING = [MAJOR, MINOR, TINY].join('.') end