Daily programming challenge

in programming •  8 years ago  (edited)

Difficulty: Hard

CHALLENGE: Programm a programm, which parses a command-String and outputs the result.

EXAMPLE:

write ("Hello, World")

RESULT:

Hello, World

VOILA: you have the first step to building an interpreter.

EXTENSION: Write a routine, which removes blank spaces outside of texts (inside quotes), so the interpreter doesn't take notice of them

EXTENSION2: Make the parser so, that Concatenating strings with a plus is allowed!

EXAMPLE (extension 2):

write ("Hello, " + "world")

RESULT (ex2):

Hello, world

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!