Re:I told my 2nd year CS students to create a programming la...
by jhrobert on Monday May 14, 2012 @09:42PM
(#3974420)
There exists tons of "toy" language implementation available online. I wonder why no students came up with a forth or lisp like solution that would have been able to handle nested loops, ifs, etc...
When I was in my 2nd year as a CS student, one of the assignment was to reimplement the Unix's M4 preprocessor (a superset of C's preprocessor), based on its manual... It includes an expression evaluator, we were told that tools like lex and yacc would help...
Re:I told my 2nd year CS students to create a programming la...
by dovyski on Tuesday May 15, 2012 @07:34AM
(#3976047)
I guess I forgot to mention, but one pair of students came up with a Forth like solution. Their interpreter was even able to parse the source code backwards.
When I was in my 2nd year as a CS student, one of the assignment was to reimplement the Unix's M4 preprocessor (a superset of C's preprocessor), based on its manual... It includes an expression evaluator, we were told that tools like lex and yacc would help...
Well... that was 25 years ago.