shaii — interpreter
Run Shay source files directly and check source syntax from the command line.
Shay is an independent hybrid programming language with original syntax, a dedicated interpreter, and a native compiler toolchain. Its UI system is designed as part of the same language and runtime—not as a separate compiler.
Shay is designed around its own vocabulary and file formats, with an interpreter and a native compiler in the same toolchain. The project focuses on making a distinct language while steadily improving its implementation, diagnostics, and developer experience.
Clone the repository and build the project with the included Makefile. Check the README for platform-specific notes and the latest build instructions.
git clone https://github.com/theprojectcreatorof2amthoughts/Shay.git cd Shay make make test
Shay uses its own keywords for declarations, output, functions, and control flow. Here is a small example:
## A first Shay program brew name = "world" instxt/>"Hello, " insval/>name brew score = 42 ifit score >= 40 instxt/>"You did it!" exec
For the complete and current syntax, use the syntax reference in the repository. Shay statements use the same grammar in .shay and the embedded logic portions of .shui.
shaii — interpreterRun Shay source files directly and check source syntax from the command line.
gshai — native compilerCompile supported Shay programs into native executables or relocatable .sho object files.
Shay's ecosystem includes .shaii libraries, .shaz task files, and the integrated .shui/.shuil UI source and adapter formats.
Shay UI is designed to live inside the Shay language. A .shui file combines ordinary Shay logic with UI declarations, while a .shuil file selects the platform adapter. The existing gshai compiler and shaii interpreter are the intended entry points; there is no separate UI language runtime or standalone shui executable.
## Browser UI source — integration example
brew displayName = "Guest"
$useentry UI(Browser)
!%#browsElementapp <{
*#uiContrl "browserutil.shuil"
*!#classUideclr !u#browserCalc
$uiSet 0
$declrmthd doCalc
insval/>displayName
finish
finish
*#drawui <'square'> <<'mainPanel'>>
*#drawui <'buttoncircle'> <:onclick=doCalc:>
*#drawui <'textbox'> <<'nameInput'>> <:bind=displayName:>
*#drawui <'label'> <<'nameLabel'>> <:bind=displayName:>
}>
$dothis
$uiFinish
Architecture: Shay owns application behavior and state. Browser JavaScript and Windows C# are platform adapters only; UI events must call into the Shay runtime, and runtime state must flow back to controls.
Implementation status: Browser and Windows Forms controls use the same authenticated loopback bridge into the compiled Shay runtime. onclick dispatches no-argument Shay methods; bind synchronizes declared values with text boxes, checkboxes and labels. Browser builds open their generated page when a desktop session is available. Windows builds emit a C# project whose form starts and stops the compiled Shay process; CI builds that project and exercises the Windows event endpoint.