Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Simple interpreter

Name: Anonymous 2012-11-06 10:21

I want to write a simple, but not too simple, interpreter for my programming language. I'm going to implement tab-completion and some other features.
How do I intercept keyboard input?

Name: Anonymous 2012-11-06 10:22

Very carefully.

Name: Anonymous 2012-11-06 10:22

>>1
IHBT

Name: Anonymous 2012-11-06 10:28

Are you sure you should be constructing a language if you need to ask this question?

Name: Anonymous 2012-11-06 10:33

>>4
Uhm... Yes!

Name: Anonymous 2012-11-06 10:44

>>1
IHL

Name: Anonymous 2012-11-06 11:12

Use editline or readline.

If you really want you can set the terminal to raw mode and do the work yourself.

Name: Anonymous 2012-11-06 11:54

>>1
0xb8000

Name: Anonymous 2012-11-06 11:58

can't get any simpler than javascript

Name: Anonymous 2012-11-06 12:09

>>9
your trolling is so pathetic it makes me sad

Name: Anonymous 2012-11-06 13:08

simple dubs

Don't change these.
Name: Email:
Entire Thread Thread List