Jan. 24, 2024, 1:30 a.m. | Chig Beef

DEV Community dev.to




Intro


In this series I am creating a transpiler from Python to Golang called Pogo. In the last post we made the abstract syntax tree, which means we are on our final step on our way of transpiling Python to Go.





The Emitter


To start off, just like the lexer and the parser, we need to make the emitter struct.



type Emitter struct {
}


And that's it! We aren't going to keep any properties on the emitter. Furthermore, …

abstract compiler go golang intro python series series i syntax transpiler tree

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US