class
RemiLib::RSConf::Parser
- RemiLib::RSConf::Parser
- Reference
- Object
Overview
The Parser class is used to parse RSConf data into RSValues.
require "libremiliacr"
rsconfStr = %|
foo = 69
bar = "hello, world"|
parser = RemiLib::RSConf::Parser.new(rsconfStr)
pp parser.parse
Defined in:
remilib/rsconf/parser.crConstructors
-
.new(stream : IO)
Creates a new
Parserthat will read from stream. -
.new(string : String)
Creates a new
Parserthat will read from string.
Class Method Summary
-
.parse(filename : Path) : RSTopLevel
Parses RSConf data from a file.
-
.parse(str : String) : RSTopLevel
Parses RSConf data from a string.
-
.parse(io : IO) : RSTopLevel
Parses RSConf data from an
IO.
Instance Method Summary
-
#parse : RSTopLevel
Parses RSConf data.
Instance methods inherited from class Object
toRsconf(io : IO, *, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : NiltoRsconf(*, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : String toRsconf
Class methods inherited from class Object
fromRsconf(toplevel : RemiLib::RSConf::RSValue)fromRsconf(data : String | IO | Path) fromRsconf