GeertJohan / ango

ango is a tool that generates a protocol for communication between Go and AngularJS over http/websockets.
BSD 2-Clause "Simplified" License
15 stars 2 forks source link

Implement a better parser (maybe using yacc) #7

Open GeertJohan opened 9 years ago

GeertJohan commented 9 years ago

The current parser is very simple and does not fully implement the ango syntax. e.g.:

type foo struct {
    field map[string]int // not supported
}

The parser package should probably be rewritten from scratch. Maybe use yacc and nex?

GeertJohan commented 9 years ago

I was able to make some simple changes to the parser so that it accepts type literals in struct field definitions. This now has a lower priority.