-
October 24th, 2013, 11:33 AM
#1
making a text editor
when making a text editor do you have to create a parser for it or are parsers just used in compilers and interpreters?
-
October 24th, 2013, 02:59 PM
#2
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?
Victor Nijegorodov
-
October 24th, 2013, 03:41 PM
#3
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 ?
-
October 24th, 2013, 03:42 PM
#4
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.
Regards,
Paul McKenzie
-
October 24th, 2013, 03:46 PM
#5
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?
Regards,
Paul McKenzie
-
October 24th, 2013, 06:25 PM
#6
Re: making a text editor
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
Last edited by GCDEF; October 24th, 2013 at 06:27 PM.
-
October 25th, 2013, 01:18 AM
#7
Re: making a text editor
Here is how to make a simple text editor in less than one minute. Just in case you won't to reinvent the wheel.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|