
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
English | Japanese |
---|
Losetta is a customizable scripting language that can be used from C# and other CLR languages; Losetta conforms to SAIM, an implementation of AliceScript, and is compatible with AliceScript and AliceSister.
Losetta is released under the MIT License and is free of charge and without warranty. In addition, Losetta is developed based on CSCS.
For more information, see LICENCE.
Download and run the appropriate binary for your environment from Release.
When the program is launched for the first time, a .alice directory is created in the directory where the binaries are located, and startup scripts, etc. are installed.
If invoked without any arguments, the interactive execution mode (REPL) is invoked.
If a file name is specified as an argument, the file is read and executed.
For example, to run the script file test.txt, do the following.
alice test.txt
The script file is in the following format You may also use Shibang.
print("Hello,World!");
print("What your name?");
write("Name>>");
var name = read();
print("Hello,"+name+"!");
It can also be described in a more sophisticated way.
write("What your name?\r\nName>>");
print("Hello,{0}!",read());
Ah yeah, if you consider the order in which they are executed, you can write them on a single line.
print("Hello,{1}!",write("What your name?\r\nName>>"),read());
Access to the API is done after declaring it with the using directive.
using Alice.IO;
// Write "Hello" in test.txt.
file_write_text("test.txt","Hello");
It can also be called directly by specifying a namespace.
Alice.IO.file_write_text("test.txt","Hello");
Available APIs can be found in the API browser.
For detailed usage instructions, please refer to AliceScriptDocs (Japanese). For those seeking information on earlier versions, AliceScriptWiki may be useful.
FAQs
The execution environment and command line interface for AliceScript.
We found that losetta.cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.