Lines Matching defs:parser
7 require 'psych/parser'
21 # Psych is a YAML parser and emitter.
43 # level, is an event based parser. Mid level is access to the raw YAML AST,
48 # The lowest level parser should be used when the YAML input is already known,
51 # more information on using the event based parser.
63 # The high level YAML parser provided by Psych simply takes YAML as input and
64 # returns a Ruby data structure. For information on using the high level parser
170 # Returns a default parser
171 def self.parser
204 parser = Psych::Parser.new(Handlers::DocumentStream.new(&block))
205 parser.parse yaml, filename
207 parser = self.parser
208 parser.parse yaml, filename
209 parser.handler.root