mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-21 18:40:13 +00:00
31 lines
369 B
Text
31 lines
369 B
Text
<<
|
|
begin {
|
|
print "In the beginning:"
|
|
}
|
|
end {
|
|
print "At the end:"
|
|
}
|
|
# Populates the main block
|
|
print "In ...";
|
|
print "... the middle!"
|
|
>>
|
|
|
|
begin { print "HELLO" }
|
|
begin { print "WORLD" }
|
|
end { print "GOODBYE" }
|
|
end { print "WORLD" }
|
|
|
|
# Immediately executed
|
|
print "HOW ARE THINGS?"
|
|
# Also immediately executed
|
|
<
|
|
x=1;
|
|
y=2;
|
|
print x+y;
|
|
>
|
|
|
|
:blocks
|
|
|
|
:begin
|
|
:main
|
|
:end
|