@resteban/verba-lang
v1.0.0
Published
A human-readable programming language and reactive UI compiler.
Maintainers
Readme
Verba Language & UI Compiler
Verba is a human-readable language that compiles directly into reactive JavaScript and binds to HTML DOM elements seamlessly.
Quickstart
1. Build Compiler & Linter
make2. Check Code Quality
./verbalint script.verba3. Transpile to JavaScript
./verbac script.verba -o app.jsLanguage Syntax Guide
action processAndGreet with text status returns text
define mutable text greeting as "Hello World"
update greeting as status
define untrusted text userInput as "malicious_script"
define text cleanInput as userInput sanitized
check greeting equals "Changed!"
print greeting
otherwise
print "Default State"
end
give greeting
end
define text finalGreeting as call processAndGreet with "Changed!"UI Binding Engine
In your HTML file, include verba-runtime.js before your generated script:
<p>Status: <strong v-bind="greeting"></strong></p>
<input type="text" v-model="greeting" />
<script src="verba-runtime.js"></script>
<script src="app.js"></script>