libcmo21/CodeGen/BMapBindings
2023-11-02 12:40:50 +08:00
..
dest add first work of BMap binding 2023-10-31 10:49:18 +08:00
.gitignore write binding code 2023-11-02 10:53:16 +08:00
ExpFctDecl.java finish recognization part of bmap binding 2023-11-02 12:40:50 +08:00
ExpFctParamDecl.java finish recognization part of bmap binding 2023-11-02 12:40:50 +08:00
ExpFctsLexer.g4 add lexer and parser for export function binding generation 2023-11-01 10:31:17 +08:00
ExpFctsParser.g4 finish recognization part of bmap binding 2023-11-02 12:40:50 +08:00
ExpFctsWalker.java finish recognization part of bmap binding 2023-11-02 12:40:50 +08:00
ExtractBMapFctDecl.py add first work of BMap binding 2023-10-31 10:49:18 +08:00
MainRunner.java finish recognization part of bmap binding 2023-11-02 12:40:50 +08:00
README.md write binding code 2023-11-02 10:53:16 +08:00
VariableType.java finish recognization part of bmap binding 2023-11-02 12:40:50 +08:00

BMap Bindings Generation

A helper program to generate BMap binding in Python and CSharp

This program is consisted by 2 parts, first is Python part which extract BMap interface function declarations from source file, thus following Antlr step can focus on syntax analyze.
Next part is Antlr part. It analyse extracted function declarations and output corresponding Python binding and CSharp binding.

python ExtractBMapFctDecl.py

antlr4 ExpFctsLexer.g4
antlr4 ExpFctsParser.g4

javac *.java
java MainRunner