class
HCL::Parser
Defined in:
hcl/parser.crConstructors
-
.new(source : String | IO, offset : Int32 = 0, io : IO | Nil = nil, path : String | Nil = nil)
Initialize parser for a given HCL source
Class Method Summary
-
.parse!(*args, **kwargs)
Parse and return an
HCL::Document
for a given HCL source
Instance Method Summary
- #document : HCL::AST::Document?
-
#parse!
Parse and return an
HCL::Document
- #source : String
- #source_path : String?
Instance methods inherited from class Reference
==(other : HCL::Any)
==
Instance methods inherited from class Object
===(other : HCL::Any)
===
Class methods inherited from class Object
from_hcl(string_or_io : String | IO, ctx : HCL::ExpressionContext = HCL::ExpressionContext.default_context)
from_hcl
Constructor Detail
def self.new(source : String | IO, offset : Int32 = 0, io : IO | Nil = nil, path : String | Nil = nil)
#
Initialize parser for a given HCL source
offset: optionally be specified to start parsing at a particular offset io: optionally be specified to tracing the parsing path: specify path for parse exceptions
Class Method Detail
def self.parse!(*args, **kwargs)
#
Parse and return an HCL::Document
for a given HCL source
offset: optionally be specified to start parsing at a particular offset io: optionally be specified to tracing the parsing path: specify path for parse exceptions
Raises HCL::ParseException
for any parsing errors