Home Applications Organize-ZLANG

Organize-ZLANG

Community Project
This project is maintained by its author and is not officially supported by InterSystems. For technical support, please contact the project developer.
3.5
1 reviews
0
Awards
272
Views
0
IPM installs
6
3
Details
Releases (9)
Reviews (1)
Issues
Articles (1)
Clean-up your %ZLANG****

What's new in this version

DEPRECATED


 no maintenance or update

The guide “Extending Languages with %ZLANG Routines”
Tells you all details you need to know to extend your programming language.
EXCEPT: How to do it in a clean way.

With less than 50 lines of code an %ZLANGC00.mac is easy to handle.
But if your Studio shows close to 1000 rows or more you may get in troubles.
And it can look so simple

ROUTINE %ZLANGC00
%ZLANGC00    ;
#include ZZUSER     ; login to USER namespace
#include ZZSYS      ; login to %SYS namespace
#include ZZSHUTDOWN ; shut down the server quietly
#; include ZZALL      ; get %ALL privilege #disabled 
#include ZZROBERT   ; run command example 
ZPM(pArgs...) Do ##class(%ZPM.PackageManager).Shell(pArgs...) Quit

My recommendation is simple.
Instead of adding line by line commands and it’s code
you isolate each command and its code into a separate Include file.

And what is left in your %ZLANG* Routines is simple and easy to
overview list of included customized Commands, Functions, Variables

BTW: #include can do more than just host #define, .. for $$$_references

So building Docker images and running Containers is a waste of energy.

Last checked by moderator
02 May, 2026Works
Version
1.0.812 Jul, 2026
ObjectScript quality test
Category
Technology Example
Works with
CachéEnsembleInterSystems IRIS
First published
19 Jul, 2020
Last edited
12 Jul, 2026