class

Oyl::PullParser

Inherits Reference < Object

Constructors

new(content : String | IO, *, dialect : Oyl::Dialect = :yaml12, merge : Bool = false, max_events : Int32 | Nil = nil, max_depth : Int32 | Nil = nil)

dialect reads documents that don't choose their own (see document_dialect). With merge, << merge keys are applied as YAML's merge has it (the keys a mapping writes win) and don't reach the events.

Safety limits: max_events bounds the events in the stream (alias and merge expansion included) and max_depth the nesting of collections; exceeding either raises Oyl::ParseException. nil keeps the library's defaults (10,000 events, depth 256); 0 disables a limit.

Source
new(content, *, dialect : Oyl::Dialect = :yaml12, merge : Bool = false, max_events : Int32 | Nil = nil, max_depth : Int32 | Nil = nil, &)
Source

Instance methods

anchor
Source
close
Source
document_dialect

The dialect of the document a DOCUMENT_START begins: YAML 1.1's if a %YAML 1.1 directive chose it (go-yaml v2's when that is the parser's dialect), else the parser's.

Source
end_column
Source
end_line
Source
expect_kind(expected : Oyl::EventKind) : Nil
Source
finalize
Source
kind
Source
location
Source
mapping_style
Source
raise(msg : String, line_number = self.start_line, column_number = self.start_column) : NoReturn
Source
read(expected_kind : Oyl::EventKind) : Oyl::EventKind
Source
read_alias
Source
read_document
Source
read_document_end
Source
read_document_start
Source
read_mapping
Source
read_mapping_end
Source
read_mapping_start
Source
read_next
Source
read_scalar
Source
read_sequence
Source
read_sequence_end
Source
read_sequence_start
Source
read_stream
Source
read_stream_end
Source
read_stream_start
Source
scalar_style
Source
sequence_style
Source
skip
Source
start_column
Source
start_line

Oyl marks are already 1-based

Source
value
Source