Enable parsing tables as struct not string
This commit is contained in:
parent
b82216af21
commit
4836c498a4
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue