COMPILER, Computer science
test1.txt
-- Function with arithmetic expression function test1 returns integer; begin 7 + 2 * (2 + 4); end;
test2.txt
-- Function with two lexical errors function test2 returns integer; begin 7 * 2 ^ (2 + 4); end;
test3.txt
-- Punctuation symbols ,;() -- Identifier name name123 -- Literals 123 -- Logical operators and or not -- Relational operators < -- Arithmetic operator + -- Reserved words begin else end endif endreduce function if is integer reduce returns then