Chrononaut-treetop-dcf 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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?
|