Dyalog Migration Tools
(Currently just for migrating from APL+Win to Dyalog)
This repository is intended to make it as easy as possible to do a first-pass migration from APL+Win to Dyalog.
Requires Dyalog v20.0 or newer.
Basic process
- Download the tools.
- From within APL+Win:
- Load your APL+Win workspace
- Establish the provided
APWtoDyalogfunction there - Export raw APL+Win source text files
- From Dyalog:
- Establish migrate.dyalog into
⎕SEor add the migration directory to SALT's cmddir - Run the migration
- Establish migrate.dyalog into
Downloading the tool
- Download and unzip to a location of your choice. In the following, the location will be referred to as
migration-folder. Unless otherwise stated, files will be found in this folder. - Alternatively, if you think you might want to contribute enhancements to the tools, clone the github repository dyalog/migration.
Exporting from APL+Win
- Open the provided APWtoDyalog.txt file in a text editor, then select all and copy to clipboard.
- In APL+Win, enter
∇to open an editor. - Paste the function definition and press Ctrl+e to save.
- Run
APLWtoDyalog 'path\for\raw\source'.
Importing to Dyalog
]set cmddir ,path\to\migration]MIGRATE.APLPlusWin path\for\raw\sourceor]MIGRATE.APLPlusWin path\for\raw\source -out=path\for\converted\source
This puts covers for APL+Win built-ins into a namespace _ since that character cannot begin a name in APL+Win. Add -pre=_. to instead keep the workspace flat by prefixing all cover names with the _ character.
See MIGRATE.APLPlusWin -?? for details.