Skip to content

Commit

Permalink
Add some more comments about the two compilation passes
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Dec 11, 2024
1 parent 2808535 commit b6be5c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ impl TranslationTable {
.filter(|r| r.rule.is_direction(direction))
.collect();

// The compilation is done in two passes: The first pass simply collects all character
// definitions and character attributes, so that they are then known in a second pass, e.g.
// for implicit braille definitions or for the `base` opcode
for rule in &rules {
match &rule.rule {
Rule::Undefined { dots } => {
Expand Down

0 comments on commit b6be5c3

Please sign in to comment.