SLIDE 1
1
CSC 1800 Organization of Programming Languages
Syntax
2
CSC 1800 Organization of Programming Languages Syntax 1 - - PDF document
CSC 1800 Organization of Programming Languages Syntax 1 Questions What is a computer program? What is a programming language? Describe the alphabet available to you to create programs 2 2 1 Programs, formally Let A be the
2
3
4
–
5
–
–
–
–
–
–
6
7
8
9
–
–
–
–
–
10
11
12
13
–
⚫ formed as strings of the alphabet of the language ⚫ lexical elements of the language
–
⚫ each specifies a grammatical category, syntactic category, or set of strings
–
⚫ appears only on LHS of a production
–
⚫ recursively defines all non-terminal symbols by showing how terminal and
non-terminal symbols may be combined
14
15
16
17
18
19
20
21