diff options
author | Carlos Maniero <carlos@maniero.me> | 2023-05-02 23:45:49 -0300 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2023-05-03 22:38:25 +0200 |
commit | 77dbf3a5011566b4a6274b3cdfa075dd723642d3 (patch) | |
tree | 8bd9022499ab1d403ca3c59bbd05b09bd44ccbbd /src/gas_assembly_generator.h | |
parent | 57cee82f9136f0a0246d3b1d3191226bd4234d43 (diff) |
Parser: Make the parser function return the ast_node
In many situations, the parser is responsible for reserving memory for
nodes, particularly during function body parsing. This commit introduces
a new standard where parser functions not only allocate memory for
ast_nodes, but also return them. In case of a parser error, a NULL
pointer is returned.
This standard will be extended to other parsers in future commits,
ensuring consistency throughout the codebase.
Signed-off-by: Carlos Maniero <carlos@maniero.me>
Diffstat (limited to 'src/gas_assembly_generator.h')
0 files changed, 0 insertions, 0 deletions