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

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Senior Software Engineer, Generative AI (C++)

@ SoundHound Inc. | Toronto, Canada