Home
Comp 212
Comp 335
Research
Anti-Research
Comp 335 - Programming Languages (Fall 2025)
Introductory Information
Syllabus
.
Canvas site
.
Save the Princess
using various programming languages.
In this course, you will write (portions of) a compiler for
a new programming language
.
99 Bottles of Beer on the Wall
.
Current rankings of programming languages
.
Linux notes
Bash scripting cheatsheet
C tutorials
CFG tutorial
- from the University of Idaho.
Projects/Homework
PL3
pl3.pdf
- here's the Big One!
scanner.c
- sample baby scanner.
littleParser.c
- sample baby parser.
cMinus.cm
- sample program in C-.
Old Assignments
pl2.pdf
- second project, due October 3.
pl1.pdf
- first project!
hw1.zip
In-Class Examples
plDay1.cpp
- checking out C++ scope.
Bash examples
bash1.sh
- first little Bash script.
bash2.sh
- more on evaluation and input
bash3.sh
- still more input and use of files
bash4.sh
- command line arguments
bash5.sh
- FOR and IF statements
bash6.sh
- basic one-dimensional arrays
bash7.sh
- display contents of directory in reverse order using FOR loops
bash7a.sh
- same as above in ONE LINE
bash8.sh
- same as previous, but using WHILE loops
bash9.sh
- Bash trickery
bash10.sh
- displaying words from a file such as
data10.txt
Chapter 6 examples
subtypePoly.cpp
- subtypes from base types.
type.cpp
- C++ is, uh, good..?
In-Class Examples
Chapter 5 examples
easyRecur.cpp
- basic recursion.
heapObject.cpp
- memory allocation in C++.
scope0.cpp
- example of a static variable.
scope1.cpp
- basic scope in C++.
staticPascal.p
- sample Pascal program.
dynamicBash.sh
- dynamic scoping in Bash.
fun.py
- fun Python scope.
alias.cpp
- finding the sum of squares in a funtastic way... maybe?
C examples
carlini.c
- every CS major can write this program!
anderson.c
. To compile, use -ansi switch, or use this
Makefile
. (
make
may have to be installed on csLab machines...)
CprimerV1.c
- all you need to know about C. Well, almost.
Cprimer.c
- final version of Cprimer.c.
passPointer.c
- passing a pointer by value and by reference.
Ccmdline.c
- command line arguments
readFile.c
- how to read a file, such as the file
input
containing a list of floating point values.
pointerInClass.c
- fun with pointers.
Last updated
Home
|
Comp 212
|
Comp 335
|
Research
|
Anti-Research