This directory contains example programs demonstrating various features of AbbyScript.
console_logging.absComprehensive demonstration of the new console.log functionality:
console.log(variable)console.log("text")console.log("text:", variable)variables_demo.absSimple demonstration of variable assignment and console output:
number_literals.absTests different ways to output numbers:
memory_operations.absDemonstrates memory and storage operations:
arithmetic.absBasic arithmetic operations
conditional.absIf/else conditional statements
functions.absFunction declarations and calls
storage.absStorage operations
simple_js_syntax.absJavaScript-like syntax examples
simple_js_no_loops.absJavaScript syntax without loops
Compile and run any example:
# Compile only
./target/debug/abby_evm compile --file examples/abbyscript/console_logging.abs
# Compile and execute
./target/debug/abby_evm execute --bytecode $(./target/debug/abby_evm compile --file examples/abbyscript/variables_demo.abs 2>/dev/null | grep 'Bytecode:' | cut -d' ' -f2)
✅ Console.log with Variables: Console logging now supports both string literals and variables
✅ Multi-argument Support: console.log("text:", variable) with automatic spacing
✅ Single-digit Numbers: Full support for displaying numbers 0-9
✅ Mixed Output: Can combine strings and variables in the same program