If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: making a text editor

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?

Re: making a text editor

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 ?

Re: making a text editor

Originally Posted by icealys

when making a text editor do you have to create a parser for it or are parsers just used in compilers and interpreters?

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.

Re: making a text editor

Originally Posted by icealys

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.

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?