Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Pages:
1-
Simple interpreter
1
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?
2
Name:
Anonymous
2012-11-06 10:22
Very carefully.
3
Name:
Anonymous
2012-11-06 10:22
>>1
IHBT
4
Name:
Anonymous
2012-11-06 10:28
Are you sure you should be constructing a language if you need to ask this question?
5
Name:
Anonymous
2012-11-06 10:33
>>4
Uhm... Yes!
6
Name:
Anonymous
2012-11-06 10:44
>>1
IHL
7
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.
8
Name:
Anonymous
2012-11-06 11:54
>>1
0xb8000
9
Name:
Anonymous
2012-11-06 11:58
can't get any simpler than javascript
10
Name:
Anonymous
2012-11-06 12:09
>>9
your trolling is so pathetic it makes me sad
11
Name:
Anonymous
2012-11-06 13:08
simple dubs
Don't change these.
Name:
Email:
Entire Thread
Thread List