Setup

Basic setup of the Phoenix Smart Language Compiler

Phoenix Smart Language Compiler Installation

  1. Extract it (if you downloaded)

  2. Go to the folder and open a terminal there

  3. Run

    dotnet publish

Phoenix Smart Language Compiler to PATH

Setup Phoenix Smart Language Compiler to the PATH

It's really helpful, so you don't need to always specify the full path to the folder if you have the Phoenix Smart Language compiler in the path

Windows

On Windows what you should do is:

  1. Right-click on the Start Button

  2. Select “System” from the context menu.

  3. Click “Advanced system settings”

  4. Go to the “Advanced” tab

  5. Click “Environment Variables…”

  6. Click variable called “Path” and click “Edit…”

  7. Click “New”

  8. 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:

  1. On the terminal

  2. export PATH=$PATH:/pathToPslCompiler/Compiler/bin/Debug/net6.0/publish
  3. That's it.

./PslCompiler.dll myPslContract.psl // From everywhere on Linux/Mac

For more information

Last updated