Comment on Making a Python interpreter in 1024 bytesparentComments−fc417fc8025dIt's just a stack containing strings at the end of the day. Really not a big deal.−nomel2dCare to give it a go? I'm curious to see how many bytes of the 1024 bytes your implementation would eat up.−TZubiri5dRight, pointers to strings but yeah. Essentially the whitespace count specifies the stack depth at which a line is to be executed. A decrease in stack depth means all superior levels are terminated.Doesn't affect function call stacks though.
Comments
It's just a stack containing strings at the end of the day. Really not a big deal.
Care to give it a go? I'm curious to see how many bytes of the 1024 bytes your implementation would eat up.
Right, pointers to strings but yeah. Essentially the whitespace count specifies the stack depth at which a line is to be executed. A decrease in stack depth means all superior levels are terminated.
Doesn't affect function call stacks though.