core: add AST support

Change-Id: I42203d7c0173e6cd880da3937f88e8f5c501db9d