update on mini-protoc
done with parser and ast structure
-> AST design consists of proto grammer that includes
1) syntax
2) package
3) message and its fields
4) services and its rpcs methods
->built a recursive descent (top down parser) parser which parses these Syntax, Package, Messages, Services into an AST struct like -
type ProtoFile struct {
Syntax string
Package string
Messages []*Message
Services []*Service
}
and its consecutive Messages, field and Service, rpc structs.
was overwhelming at start but too much fun to write this as i proceeded >.<
next up will be writing of semantic validation
check out the repo in replies :D