Using ANTLR4 with LLVM? (specifically llvmlite, a python package)

220 views
Skip to first unread message

Exedys Digital

unread,
Nov 2, 2019, 8:27:18 PM11/2/19
to antlr-di...@googlegroups.com
Hello everyone!

I am working on my own language and am looking to generate LLVM machine code from my language and was finding it a bit tricky to connect my compiled ANTLR4 lexer and parser with an LLVMlite compiler. Does anyone have any suggestions or ideas on how to solve this issue?

Thanks.

Martin Mirchev

unread,
Oct 3, 2020, 11:45:20 AM10/3/20
to antlr-discussion
Hi, I suggest using a visitor to walk the tree and generate IR. This will put most of the complexity in your visitor, but you can probably create some utility functions to reduce the complexity.
Reply all
Reply to author
Forward
0 new messages