Documentation ¶
Overview ¶
Package parser provides function to parse hrandoprovod formatted files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorBadSyntax ¶
ErrorBadSyntax used when the stream contains bad syntax
func NewErrorBadSyntax ¶
func NewErrorBadSyntax(lineNumber int, line string) *ErrorBadSyntax
NewErrorBadSyntax creates new ErrorBadSyntax error
func (*ErrorBadSyntax) Error ¶
func (e *ErrorBadSyntax) Error() string
Error returns the error message
type ErrorConversion ¶
ErrorConversion raised when the element value cannot be parsed as float
func NewErrorConversion ¶
func NewErrorConversion(text string, lineNumber int, line string) *ErrorConversion
NewErrorConversion creates new ErrorConversion error
func (*ErrorConversion) Error ¶
func (e *ErrorConversion) Error() string
Error returns the error message
type ErrorIO ¶
type ErrorIO struct { FileName string // contains filtered or unexported fields }
ErrorIO raised on IO issue
func NewErrorIO ¶
NewErrorIO creates new IO Error
type Options ¶
type Options struct { // CommentChar contains the character used to indicate that the line is a comment CommentChar uint8 }
Options contains the parser related options
func NewDefaultOptions ¶
func NewDefaultOptions() *Options
NewDefaultOptions returns the default set of parser options
type Parser ¶
type Parser struct { Nodes chan *shared.Node Errors chan error Done chan bool // contains filtered or unexported fields }
Parser is the parser data structure
func (*Parser) ParseStream ¶
ParseStream parses the contents of stream
Click to show internal directories.
Click to hide internal directories.