I want to build an own interpreter using c programming and I want to call it in command prompt. How would i do this? I just want to start a command "display" which can display the contents of a file like type in cmd.
archie.herbias -2 Newbie Poster
Recommended Answers
Jump to PostIf you want to build an interpreter, make a repl.
Repl stands for: Read, Evaluate, print and loop.
Generally thats how pipeline programs work, and it's not unusual fotprograms that deal with real time data, as well as (of course) programming language interpreters.
For simple programs it might look something …
Jump to PostAt a minimum, a command interpreter does the following three things:
- Display a prompt
- Read a line of input
- Loop to #1
A functional command interpreter adds a new step that executes the command read during step #2 and before looping back to step #1.
I
C
, you have …
Jump to PostOh, you don't want to create your own interpreter. You want to let your program to be useable from the windows command line.
This doesn't really have anything to do with C, and more to do with the Windows Operating system.
All you need to do is put your .exe …
All 10 Replies
sepp2k 378 Practically a Master Poster
archie.herbias -2 Newbie Poster
sepp2k 378 Practically a Master Poster
Hiroshe 499 Posting Whiz in Training
L7Sqr 227 Practically a Master Poster
archie.herbias -2 Newbie Poster
archie.herbias -2 Newbie Poster
archie.herbias -2 Newbie Poster
Hiroshe 499 Posting Whiz in Training
archie.herbias -2 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.