Building a language and an interpreter for it from scratch
Note that this is a list of features that I want to implement, and not necessarily the order in which I will implement them.
What has already been implemented:
if
-else
statementswhile
loopsfor
loopsand
and or
operatorsthis
attributeHere’s the full set of extra features, and their progress:
\n
, \t
, \'
, \"
, \\
and \↵
%
\
^
"Hello, world!"
42
[42, 56]
{42: "Forty two"}
break
and continue
semantics in loopstry
/ except
blocks and raise
statements*args
input
read
and write
for filesmin
, max
and abs
map
, filter
and reduce
that take lists and return new listsimport
systemrandom
moduleio
module string and binary reads/writes to fileshttp
library to make a web server and clientmath
module