Https://github.com/inshua/vba-interpreter
Has covered almost all of the features of VB, but the library is not full.
VB language itself is relatively backward, grammar also has a lot of improper design. The most serious is that both the function and the array are accessed through (), and the later extended item class members also use (), resulting in a clustered syntax ambiguity. But the form of return results taken by VB language 函数名=结果
is well suited to writing business rules, and the motivation of this project is to implement a friendly and practical rule engine.
VB language design Chaos is very much, such as Select case supports the number ' 1 ' and 1 matching, while 1 = ' 1 ' is the type mismatch and so on, the concept does not penetrate, lack of closures, class definition and other characteristics. However, for some companies and customers who have been using VBA for a long time, there is still great potential for writing business rules, which is suitable for the non-professional programmers to write some provident Fund tax rules and other fragments.
Today has completed many years ago written VB calculator, is a wish to achieve, if no other reason will not continue to push forward. If you are writing business rules for VBA recognition and interested in the need to use the welcome experience in your own projects, you can contact me if you encounter problems.
VBA Interpreter end