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:
return &Ident{lit}, nil
case TABLE:
return &Table{lit}, nil
case NOW:
return time.Now(), nil