I thought it would be useful for experimentation to have a simple Tachyon shell... So I hacked one together quickly this afternoon. To run it, you need to rebuild your V8 (I added a readConsole function). You can then run it with "make run". The bootstrap run is now accessible through "make bootstrap".
See example below:
t> a = 3 "<string>"@1.5-1.6: warning -- semicolon was inserted after this token
t> print(a + 2); 5
t> b = [1,2,3];
t> print(b.length); 3
t> ^Cmake: *** [run] Interrupt
Currently, you have to type print(...) if you want to print the value of something, and you have to terminate each input with EOF... I may change that to just enter since it's more convenient. This is obviously a quick hack as it stands, but it should be useful for testing out simple things for debugging.
- Maxime
Afficher les réponses par date
On 2011-02-03, at 6:04 PM, chevalma@iro.umontreal.ca wrote:
I thought it would be useful for experimentation to have a simple Tachyon shell... So I hacked one together quickly this afternoon. To run it, you need to rebuild your V8 (I added a readConsole function). You can then run it with "make run". The bootstrap run is now accessible through "make bootstrap".
See example below:
t> a = 3 "<string>"@1.5-1.6: warning -- semicolon was inserted after this token
t> print(a + 2); 5
t> b = [1,2,3];
t> print(b.length); 3
t> ^Cmake: *** [run] Interrupt
Currently, you have to type print(...) if you want to print the value of something, and you have to terminate each input with EOF... I may change that to just enter since it's more convenient. This is obviously a quick hack as it stands, but it should be useful for testing out simple things for debugging.
Very nice!
Anyone care to add a "readline" so we can edit the command (up-arrow, etc)? ;-)
Marc