Gazelle currently only provides a way to do event-based parsing. You
can ask Gazelle to call a callback of your choice whenever it
successfully parses a rule -- see gzlparse.c for an example of how to
do this.
Gazelle probably isn't your best choice at the moment for building
AST's. You can certainly do it, it will just take a bit of work that
might be a bit intimidating if you're new to parsing. Eventually I
want Gazelle to make this dead-easy, it's just not there yet. But
thanks for your interest!