(phixonline)-->
with javascript_semantics
sequence queue = {}
procedure push_item(object what)
queue = append(queue,what)
end procedure
function pop_item()
object what = queue[1]
queue = queue[2..$]
return what
end function
function empty()
return length(queue)=0
end function