linuxer4fun avatar

Daily programming challenge

linuxer4fun

Published: 07 Jan 2017 › Updated: 07 Jan 2017

Daily programming challenge

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

Leave Daily programming challenge to:

Written by

Read more #programming posts


Best Posts From linuxer4fun

We have not curated any of linuxer4fun's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From linuxer4fun