

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


No. Token Description 1 \n Newline 2 program Start of Program 3 var Variable 4 const Constant 5 type To define a data type 6 function To define a function 7 return return from function 8 begin start of a block 9 end end of a block 10 :=: swap 11 := assignment operator 12 output output an expression or string 13 if keyword 14 then keyword 15 else keyword 16 while keyword for loop 17 do keyword for loop 18 case keyword 19 of keyword 20 .. dots for case expression
21 otherwise keyword 22 repeat keyword for repeat-until loop 23 for keyword for loop 24 until keyword for repeat-until loop 25 loop keyword for loop-pool loop 26 pool keyword for loop-pool loop 27 exit keyword 28 <= less than equal to binary operator 29 <> not equal to binary operator 30 < less than binary operator 31 >= greater than equal to binary operator 32 > greater than binary operator 33 = equal to binary operator 34 mod modulus binary operator 35 and and binary operator 36 or or binary operator 37 not not unary operator 38 read read an identifier 39 succ successor of an ordinal value 40 pred predecessor of a ordinal value 41 chr keyword for character function 42 ord keyword for ordinal function 43 eof keyword for end of file 44 { begin comment 45 } end comment 46 : colon 47 ; semi colon 48. single dot 49 , comma 50 ( Left parenthesis 51 ) Right parenthesis 52 + plus 53 - minus 54 ***** multiply 55 / divide