R***@gmail.com
2006-05-09 13:44:42 UTC
Hi. I'm looking for a very simple programming language. I would like to
teach a single lecture on programming concepts to media-ish students in
a first year "introduction to lots of different things" module. The
language should be very simple, and preferably the students should be
able to type in their simple programs to an applet or similar available
across the web.
My current plan is to write a bespoke language using JavaCC or similar,
and deploying it as an applet. This isn't a big problem for me as I've
written languages before. However, I thought I should ask around in
case something similar has been done before.
The language would have only the features:
typed variable declarations for int and float only.
assignment statements. Full BODMAS
if statements, including else and blocks
a while statement with
typed functions with typed arguments.
a print statement that can print out quoted strings, numerical
constants, and the contents of numerical variables, separated by commas
an input statement with an optional prompt that returns a single
numerical variable
And that would be it. The students would be primarily taught through a
single two hour lecture, and a two hour tutorial concentrating on
desk-checking very simple programs. Both stand-alone and web
interpreters would be available for their self-study.
The teaching aim is to "soften them up" a bit for when they, or some of
them, learn real programming languages of various types (C, Java,
Javascript, Lingo) in the second and later years.
Anybody got any langauges/systems to recommend before I roll my own?
Cheers,
Ross-c
teach a single lecture on programming concepts to media-ish students in
a first year "introduction to lots of different things" module. The
language should be very simple, and preferably the students should be
able to type in their simple programs to an applet or similar available
across the web.
My current plan is to write a bespoke language using JavaCC or similar,
and deploying it as an applet. This isn't a big problem for me as I've
written languages before. However, I thought I should ask around in
case something similar has been done before.
The language would have only the features:
typed variable declarations for int and float only.
assignment statements. Full BODMAS
if statements, including else and blocks
a while statement with
typed functions with typed arguments.
a print statement that can print out quoted strings, numerical
constants, and the contents of numerical variables, separated by commas
an input statement with an optional prompt that returns a single
numerical variable
And that would be it. The students would be primarily taught through a
single two hour lecture, and a two hour tutorial concentrating on
desk-checking very simple programs. Both stand-alone and web
interpreters would be available for their self-study.
The teaching aim is to "soften them up" a bit for when they, or some of
them, learn real programming languages of various types (C, Java,
Javascript, Lingo) in the second and later years.
Anybody got any langauges/systems to recommend before I roll my own?
Cheers,
Ross-c