neugram / ng

scripting language integrated with Go
https://neugram.io
BSD 2-Clause "Simplified" License
916 stars 43 forks source link

parser: support for struct field tag #172

Closed sbinet closed 6 years ago

sbinet commented 6 years ago

the following fails in ng:

$> cat tag-struct.ng
type T struct {
    Name string `json:"name"`
}

$> ng ./tag-struct.ng
neugram: parser: expected ",", found "string" (off 42)
neugram: parser: expected "ident", found "string" (off 42)
ng: typecheck: type _ not declared