Skip to content

Comments

Ast#10

Merged
CTalkobt merged 2 commits intomainfrom
ast
Jan 5, 2026
Merged

Ast#10
CTalkobt merged 2 commits intomainfrom
ast

Conversation

@CTalkobt
Copy link
Owner

@CTalkobt CTalkobt commented Jan 5, 2026

Initial draft of AST and flag, register usage.

  - Output comments with tab separator after operands
  - Comments preserved on all non-dead code lines
  - Updated test expected outputs

  This maintains code documentation through optimization, improving
  output readability and preserving programmer annotations.

  Or the most concise version:

  feat: Preserve inline comments in optimizer output

  Add comment parsing to parse_line_ast() and output to write_output_ast().
  Comments are now preserved on all lines that survive optimization,
  maintaining code documentation and improving readability.
@CTalkobt CTalkobt merged commit 1627c51 into main Jan 5, 2026
1 check passed
@CTalkobt CTalkobt deleted the ast branch January 6, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant