-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add --fdump-tree=FILE option to dump the AST to a file
May be useful for debugging code generation. Use the extension of FILE to choose the format of output: * .ml : OCaml code format * any other: JSON format (output validated by jsonlint-php)
- Loading branch information
Showing
12 changed files
with
2,290 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
|
||
2023-07-15 Fabrice Le Fessant <[email protected]> | ||
|
||
* cobc.c, dump_tree.c: new options to dump the AST in text format: | ||
--dump-tree=<file>, and --dump-tree-flags=<flags>. Format is | ||
either OCaml (for files with .ml extension) or JSON. If file | ||
ends with '/', then it is expected to be a directory and the | ||
file will be generated with the program id as name. Flags are | ||
'+/-' for enable/disable, 'c' for cb_common, 'l' for locations, | ||
't' for types, 'p' for pointers, 'i' for indentation, 'n' for | ||
newlines, 'A' for all infos, 'O' for OCaml format, 'J' for | ||
JSON format. Env variables COB_DUMP_TREE and | ||
COB_DUMP_TREE_FLAGS can also be used to set these flags. | ||
|
||
2023-07-11 Fabrice Le Fessant <[email protected]> | ||
|
||
* parser.y: fix code generation for OPEN/CLOSE with multiple | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.