[CORE] Update compilation process
[CORE] Add grammar for the code generator