First commit: Naive&Fast generalized AST construction, basic tests