Chrononaut-treetop-dcf 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dcf.rb +3 -2
- metadata +1 -1
data/lib/dcf.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
require "rubygems"
|
2
2
|
require "treetop"
|
3
|
-
require
|
3
|
+
require "dcf_grammar"
|
4
4
|
|
5
5
|
module Dcf
|
6
|
-
#
|
6
|
+
# @param [String] input
|
7
|
+
# @return [Array, nil] An array of { attr => val } hashes or nil if failure
|
7
8
|
def self.parse(input)
|
8
9
|
parse = DcfParser.new.parse(input)
|
9
10
|
return if parse.nil?
|