A
A
Andrey2020-01-30 10:29:49
Books
Andrey, 2020-01-30 10:29:49

How to convert AST to byte code?

Important: the task must be solved without using ANTLR and similar tools
. I have a programming language that I parsed and got an abstract syntax tree. Actually the question is as follows: how to convert an abstract syntax tree into bytecode, please tell me the literature and articles on the topic that you know, it is IMPORTANT that there are examples of compilation code, and not just a description of the algorithms.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2020-01-30
@poslannikD

how to convert abstract syntax tree to bytecode

If roughly, then bypass the tree, issuing the bytecode corresponding to each node.
suggest literature and articles on the topic

SICP

M
Mikhail Potanin, 2020-03-06
@potan

dragon book

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question