Enable parsing tables as struct not string

This commit is contained in:
Tobie Morgan Hitchcock 2016-09-07 17:01:32 +01:00
parent b82216af21
commit 4836c498a4

View file

@ -105,6 +105,9 @@ func (p *Parser) declare(tok Token, lit string) (interface{}, error) {
case IDENT: case IDENT:
return &Ident{lit}, nil return &Ident{lit}, nil
case TABLE:
return &Table{lit}, nil
case NOW: case NOW:
return time.Now(), nil return time.Now(), nil