when making a text editor do you have to create a parser for it or are parsers just used in compilers and interpreters?
Printable View
when making a text editor do you have to create a parser for it or are parsers just used in compilers and interpreters?
What kind of "text editor" are you going to make?
What is wrong for you in using already existing ones?
What is the "parser" about to do?
What is the "interpreter" about to do?
What is the "compiler" about to do?
a text editor like notepad.
I just wanted to understand how input is received as character codes and then translated into drawing characters on the screen.
Would you need to make a parser in that case or is it unnecessary ?
Seriously, if you really are trying to make a text editor, the first thing you shoud do is research the topic of building a text editor. There are many articles written over the decades on the methods used to construct such a utility.
I have no idea why you're asking about "parsers", "compilers" or "interpreters" with respect to editing text.
Regards,
Paul McKenzie
You don't need to study an editor to know these things -- these are low-level, but basic operations of a terminal-based system (i.e. your computer, screen, and keyboard). How does the command-prompt work when you type in characters at the C:\ prompt?
Regards,
Paul McKenzie
Parsers are used where parsers are needed. For a simple text editor, I wouldn't think so, but it could depend on what features you want to implement.
You can find source code for a word processor by following the links here.
http://msdn.microsoft.com/en-us/libr...=vs.90%29.aspx
Here is how to make a simple text editor in less than one minute. Just in case you won't to reinvent the wheel.