i'm developing a "videogame" to teach programming for my college.
This videogame is level based, in where each level is about a programming subject(Variables, data structures, etc.) and given that subject then the level will be a puzzle or a 2d platformer so for example in the level of conditionals it will be a 2d platformer where the user has to introduce via a gui console the instructions to make the character check if there's something blocking the way or something like that.
what i need is some code that given the input in that console it will check for syntactic and semantic errors. The input will be based on a language of choice (i'm thinking C#) but there's nothing 100% sure about that. (I mean that i'm thinking of teaching C#, but i could teach any other language)
right now i'm in the task of building the console but it is very difficult for me as i'm not an advanced programmer.
I've been searching in the internet for some parsers or stuff that just check those two things and for example return booleans, but i've only found compiler-compiler stuff like GOLD or ANTLR and i think that it is not necesary for the scale of the project.
How could i develop such parser or can you point me to one?
EDIT : maybe a good example of what i want to accomplish is something like codecademy's console or the tryhaskell.org console