behave
is a language for writing Microsoft Flight Simulator Model Behaviors.
It converts the hard-to-understand XML into a declarative language, with a powerful, imperative template system and RPN compiler.
behave
was designed to replace Microsoft Flight Simulator ModelBehavior XML for many reasons:
- XML is a terrible language to write 'code' in.
- RPN is a relic from the early 2000s, and is extremely difficult to understand due to its stack-based nature.
- The error reporting in the XML compiler is terrible. No really. If an error is in an included file, good luck figuring out which one. Oh? you wanted a line number? Figure it out yourself.
- Download the latest version of
behave
from the releases. - Head over to the wiki to learn how to use
behave
in your project.
The behave
compiler is licensed under the GNU GPLv3.
Feel free to improve the code, add features, and submit pull requests.