Skip to content

build a "for" Loop and Syntax Sugar Transpiler  #1

@yazaldefilimone

Description

@yazaldefilimone

"For" Loop Transpiler:
Objective: Implement a transpiler that converts "for" loops into equivalent code using existing language constructs.

Example:

(for (var x 0) (< x 10) (++ x)
  (print x)
)

covert for loop to while loop ast and generate that code:

let x = 0;
while(x < 10){
 print(x)
++x
}

Syntax Sugar:
Objective: Add syntactic sugar to the language to simplify common coding patterns.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions