class RemiLib::RSConf::Parser

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.cr

Constructors

Class Method Summary

Instance Method Summary

Class methods inherited from class Object

fromRsconf(toplevel : RemiLib::RSConf::RSValue)
fromRsconf(data : String | IO | Path)
fromRsconf

Constructor Detail

def self.new(stream : IO) #

Creates a new Parser that will read from stream.


[View source]
def self.new(string : String) #

Creates a new Parser that will read from string.


[View source]

Class Method Detail

def self.parse(filename : Path) : RSTopLevel #

Parses RSConf data from a file.


[View source]
def self.parse(str : String) : RSTopLevel #

Parses RSConf data from a string.


[View source]
def self.parse(io : IO) : RSTopLevel #

Parses RSConf data from an IO.


[View source]

Instance Method Detail

def parse : RSTopLevel #

Parses RSConf data.


[View source]