What are Pascal token symbols?

What are symbols?

Symbols are special characters that are used in the Pascal token and interpret special meanings.

Pascal special symbol tokens

  • +: Addition
  • -: Subtraction
  • *: Multiplication
  • /: Division
  • ==: Comparison
  • >: Greater than
  • <: Less than
  • >=: Greater than or equal to
  • <=: Less than or equal to
  • <>: Not equal
  • =: Equal
  • ;: Statement separation

Pascal word symbol tokens

  • AND: Conjunction operator
  • OR: Disjunction operator
  • IF: Executes boolean condition if true
  • THEN: Executes the statements in IF if the condition is true
  • ELSE: Executes the statements out of IF if the condition is false
  • CASE: Starts to execute the statements that involve case

Code

Example 1


Program tokenTest
begin 
Writeln (1*2)
Writeln (2/2)
end;

Example 2


Program tokenTest2
begin
Writeln ('2=2`)
end;

Free Resources