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 operatorOR: Disjunction operatorIF: Executes boolean condition if trueTHEN: Executes the statements inIFif the condition is trueELSE: Executes the statements out ofIFif the condition is falseCASE: 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;