May 31, 2020
compiler, cs, theory

tags Computer Science Programming Syntax Analysis # Syntax analysis happens after the Lexical phase, and it is responsible for detecting syntax errors. Grammar # Be design, computer languages have defined structure of what constitutes a valid program. in Python, a program is made up of functions/classes/imports, a function requires declarations and/or statements and so on. In C, a valid program needs to have a least a function called main, otherwise the GNU’s linker is unable to link the program. ...