syntax logoPlayer_syntax (logoPlayer_lexique) { rule { # Routine definition $PROGRAM$ $BEGIN$ $END$ $.$ } rule { repeat while end } rule { $ROUTINE$ $identifier$ ?let @lstring routineId $BEGIN$ $END$ } rule { repeat while end } rule { select or or end $;$ } rule { select $FORWARD$ or $ROTATE$ end $integer$ ?let @luint moveLen } rule { $PEN$ select $UP$ or $DOWN$ end } rule { $CALL$ $identifier$ ?* } }