Published project release OneScript 1.9.0, developing a cross-platform virtual machine independent of the 1C company for executing scripts in the 1C:Enterprise language. The system is self-sufficient and allows you to execute scripts in the 1C language without installing the 1C:Enterprise platform and its specific libraries. The OneScript virtual machine can be used both for direct execution of scripts in the 1C language, and for embedding support for their execution into applications written in other languages. The project code is written in C# and distributed by licensed under MPL-2.0. Supports work on Linux, Windows and macOS.
OneScript supports all features of the 1C language, including loose typing, conditional expressions, loops, exceptions, arrays, regular expressions, COM objects and built-in functions for working with primitive types. The standard library provides functions for working with files and strings, interacting with the system, processing JSON and XML, network access and use of the HTTP protocol, mathematical calculations, and working with layouts.
Initially, the system was designed for developing console applications in the 1C language, but the community is developing the library OneScriptForms, which allows you to create applications with a graphical interface. In addition to the standard library and OneScriptForms, more than one is available for OneScript 160 packages with additional libraries and utilities. To simplify the installation and distribution of libraries, a package manager is offered ovm.
In the new version:
- The “KnownTypes()” method has been added to the “Reflector” object, which returns all registered types in the form of a “Value Table”.
- The “BinaryDataBuffer.Split()” method has been implemented.
- When calling a method through Reflector, control of the method signature and number of parameters is provided.
- Documentation has been improved and assembly instructions have been added to the README file.
- The debugger now implements the display of private (non-export) object variables. Indexing of variables has been improved and the problem with displaying incorrect values in some situations has been fixed.
Thanks for reading: