Skip to content

Introduce translation phase#101

Merged
istathar merged 31 commits into
technique-lang:mainfrom
istathar:run
May 8, 2026
Merged

Introduce translation phase#101
istathar merged 31 commits into
technique-lang:mainfrom
istathar:run

Conversation

@istathar
Copy link
Copy Markdown
Member

@istathar istathar commented May 7, 2026

This takes the parser's internal Abstract Syntax Tree and lowers it to an Intermediate Representation with symbols resolved and a series of operations to be evaluated.

This happens in a new translation phase after the parsing phase to the compiler. The technique check command is now augmented with an --until option that if specified stops the compiler after reaching and completing that phase.

The Intermediate Representation deliberately uses type names that are different than those used by the surface language's Abstract Syntax Tree representation. So a Technique language::Procedure becomes program::Subroutine and so on.

Reorganized the known-good and known-bad test samples by phase.

@istathar istathar self-assigned this May 7, 2026
@istathar istathar merged commit 2de072a into technique-lang:main May 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant