<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MecScript Language :: Emtron Resource Centre</title><link>https://docs.emtronaustralia.com.au/transmission-control/scripting/mecscript/index.html</link><description>MecScript is a statically-typed, heap-less, C-style scripting language for 32-bit embedded systems. Source files (.mec) compile to a compact bytecode binary (.mbin) that runs on a stack-based virtual machine inside the host device.
1. Program Structure There is no main function. Top-level statements execute in source order when the script runs.
int x = 40; int y = 2; System::PrintInt(x + y); // 42 System:: is the namespace host (native) functions are called through by default. A host can put its natives in a namespace of its own instead. See Native functions.</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://docs.emtronaustralia.com.au/transmission-control/scripting/mecscript/index.xml" rel="self" type="application/rss+xml"/></channel></rss>