yyc12345
d74b4645f0
- fix build issue in Unvirt and LibCmo - due to we use UTF8 string. the accessible value generator in EnumsMigration need to be changed at the same time. - remove string helper in Unvirt because we no longer need it. |
||
---|---|---|
.. | ||
dest | ||
src | ||
.gitignore | ||
CKDefinesParser.g4 | ||
CKEnumsParser.g4 | ||
CKGeneralLexer.g4 | ||
ClassidWalker.java | ||
CommentsFinder.java | ||
CommonHelper.java | ||
CppWriter.java | ||
CSharpWriter.java | ||
DefinesWalker.java | ||
EnumsHelper.java | ||
EnumsWalker.java | ||
IndentHelper.java | ||
MainRunner.java | ||
PythonWriter.java | ||
README.md |
Enums Migration
A helper program to migrate existing Virtools enum declarations into other formats.
Original Virtools SDK have various enum declarations. All of them are defined as C format and their formation are not uniform. This sub-project will use laxer and parser to recognize these diverse declarations, extract them as a series of uniform Java data struct and output them as C++ code (as C++ enum class syntax for LibCmo using), Python code (for PyBMap using), and C# code (for BMapSharp using).
The steps processing existing enum declaration is called migration as this sub-project name told.
antlr4 CKGeneralLexer.g4
antlr4 CKEnumsParser.g4
antlr4 CKDefinesParser.g4
javac *.java
java MainRunner