Move the ast file to term_system, it doesn't compile.
Add missing files.
Solved compilation problem
Added missing file
Use term system error instead of a generic error (because error_code won't be the same.
Use a custom error_code for the term system and improve error code generation.