Setup
Basic setup of the Phoenix Smart Language Compiler
Phoenix Smart Language Compiler Installation
Download / clone the repository https://github.com/phantasma-io/TOMB/tree/tomb-ng
Extract it (if you downloaded)
Go to the folder and open a terminal there
Run
dotnet publish
That's it, you have the compiler ready!
Now you can add it to the path.
Phoenix Smart Language Compiler to PATH
Windows
On Windows what you should do is:
Right-click on the Start Button
Select “System” from the context menu.
Click “Advanced system settings”
Go to the “Advanced” tab
Click “Environment Variables…”
Click variable called “Path” and click “Edit…”
Click “New”
Enter the path to the folder containing the binary you want on your PATH. To add: C:\PathToPSLC\Compiler\bin\Debug\net6.0\publish
Now you can do something like
PslCompiler.exe myPslContract.psl // From everywhere on Windows
Linux & MacOS
On Linux and MacOS:
On the terminal
export PATH=$PATH:/pathToPslCompiler/Compiler/bin/Debug/net6.0/publish
That's it.
./PslCompiler.dll myPslContract.psl // From everywhere on Linux/Mac
For more information
Last updated