filmov
tv
The C Programming Language K&R: 1-24 Solution - Syntax Error Checking

Показать описание
In this video I go through the solution to exercise 1-24 from the C programming language textbook by Brian Kernighan and Dennis Ritchie. I complete the exercise in full generality. As a result of this, I introduce a new concept known as a 'stack'. I attempt to fully explain this concept without presupposing any previous knowledge. This program checks for syntax errors in a C program.
1-24: Write a program to check a C program for rudimentary syntax
errors like unbalanced parentheses, brackets and braces. Don't forget about
quotes, both single and double, escape sequences, and comments. (This pro-gram is hard if you do it in full generality.
1-24: Write a program to check a C program for rudimentary syntax
errors like unbalanced parentheses, brackets and braces. Don't forget about
quotes, both single and double, escape sequences, and comments. (This pro-gram is hard if you do it in full generality.