NAME
readLine — read one line of Pyon text
SYNOPSIS
readLine(text)
DESCRIPTION
Reads from left to right: numbers (2, ×2 and 2x are twice; none is once), then the longest key, stand-in or word that fits (so "jump" before "j"), then a loose word. It collects who, numbers, moves, lamps, dice and again; filler words such as "please" and "then" are passed over, and any other word is kept as unknown. The same rules as the kernel's readLine.
PARAMETERS
text: one line, without its ;.
RETURN VALUE
{ who, nums, acts, lamps, dice, again, unknown }.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
