initial commit of code that infers DSL structure