[Tests] Refactor the testing code and use structs.
[Refactor] The parser generated implements the Parser trait and is inside a structure.
[CompilationFix] Store the parser structure instead of a procedure.