W – A simple programming language
vttoth.com
vttoth.com
Or int?
Or class?
There is more then one project out there with klass.
And why would you want to name a variable 'int'?
Perhaps you should name your language, so I can provide better examples.
Plus, you can always use a grammar that distinguishes between keyword rules and variable rules, and you'll never have any unambiguity. Even if popular languages don't do this, that's not a general problem for computer languages.
Oh good. My comment was in response to someone who doubt keywords would ever make good variable names (e.g. class).
> you can always use a grammar that distinguishes between keyword rules and variable rules, and you'll never have any unambiguity.
Yes, that is nice. And that's what W does. As an ancestor comment said, kudos for a "clean syntax"!
(NOTE: there are alternatives, e.g. Scala's backticks. But W's choice is a good one.)
Excerpt:
20 primitives/verbs, 6 operators/adverbs and 3 system functions.
1 control structure($) - rarely used - and no reserved words.So his examples in his tutorials[1] do not conform to the grammar described, e.g. conditional expressions.
[0] https://www.vttoth.com/CMS/index.php/projects/14-w-compiler/... [1] https://www.vttoth.com/CMS/index.php/projects/14-w-compiler/...
HP200LX was my only computer 1993-1995, if I wanted to see some color pictures I went to see library computer. It was my travelling companion for 20 years upto 2010, mostly as an E-book reader.
Ha ha ha!