CMPUT174 Lecture Notes - Computer Language

17 views1 pages
5 Feb 2023
Course
Professor
ceruleanzebra152 and 30 others unlocked
CMPUT174 Full Course Notes
25
CMPUT174 Full Course Notes
Verified Note
25 documents

Document Summary

Syntax - the structure of statements in a computer language. Syntax defines the structure or format of python statements. Token is apart of a phrase which is apart of a sentence must be. To be useful both natural language sentences and python statement mist be semantically valid in addition of being syntactically valid. Terminal state is a state that represents a single token. Non-terminal state is a state that does not represent a single token. Accepting state - a state that has a double boarder. One terminal accepting state is a identifier token. One terminal accepting state is a literal token. One terminal accepting state which is a set of 3 specific keyword tokens(true, false, Non-terminal state - rectangle(requires its own syntax diagram) Accepting state - rounded rectangle with double boarder.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions