You write a program in C that is able to transform LASERD source files in to a form that it can interpret and then execute.
One way to do this is to create a simple virtual machine as part of your C program that is sort of like a virtual CPU (with registers, pretend memory and simple opcodes like ADD, SUBtract, MOVe etc.
The C program takes the LASERD source file interprets the syntax and generates code that can 'run' on the virtual CPU.
This is basically how Lua, Python, Ruby, Java etc work.
Does that make sense?
This surprises me. Of the higher-level languages you (or your school) could choose, why PHP? I understand for beginners, but why for students coming from a C background?
I know PHP sucks sometimes, but it's still a cool language to play with.
It's one of those things that (negatively) surprised me about Hacker News, actually. People go around and unproductively bash each other's programming languages when they could use their energy to elaborate on the stuff they actually like. The group consensus seems to be that Lisp is the best thing a language can hope to be; and since very few people actually develop in Lisp-likes, they fall over each other to claim the next-best place in the All-Time Universal Programming Language Hierarchy(tm).
I believe the origin of this behavior might be a somewhat mistaken PG essay[1] implying that all non-Lisp languages are "Blub", which is a synonym for "sucky, powerless, inferior language".
The absence of support for nested loop/if constructs probably means they didn't write parsers that generate trees, but rather chose to execute scripts line-by-line, right?
I'd like to ask you fellow hackers: if you created a toy programming language today, what features would it have?
About your (first) question, yes, they all execute scripts line-by-line.
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.