func (h *File) LoadString(fname, s string) (err error) {
	lx := newLex(strings.NewReader(s))

	defer func() {
		if e := recover(); e != nil {
			*h = nil
			err = fmt.Errorf("%s:%d:%d - %s", fname, lx.line, lx.column, e.(error))
		}
	}()

	if yyParse(lx) != 0 {
		panic(errors.New("syntax error"))
	}

	*h = lx.hosts
	return
}
// Load File from a hosts format string s. Return an Error, if any.
Load File from a hosts format string s. Return an Error, if any.
// Load File from a hosts format string s . Return an Error if any .
func (h *File) LoadString(fname, s string) (err error) {
	lx := newLex(strings.NewReader(s))
	defer func() {
		if e := recover(); e != nil {
			*h = nil
			err = fmt.Errorf("%s:%d:%d - %s", fname, lx.line, lx.column, e.(error))
		}
	}()
	if yyParse(lx) != 0 {
		panic(errors.New("syntax error"))
	}
	*h = lx.hosts
	return
}
func ( h * File ) LoadString ( fname , s string ) ( err error ) { lx := newLex ( strings . NewReader ( s ) ) defer func ( ) { if e := recover ( ) ; e != nil { * h = nil err = fmt . Errorf ( " " , fname , lx . line , lx . column , e . ( error ) ) } } ( ) if yyParse ( lx ) != 0 { panic ( errors . New ( " " ) ) } * h = lx . hosts return }
Load File from a hosts format string s. Return an Error, if any.
Load File from a hosts format string s . Return an Error if any .