lhartikk / ArnoldC

Arnold Schwarzenegger based programming language
lhartikk.github.io/ArnoldC/
Apache License 2.0
6.73k stars 290 forks source link

How to read an integer? #113

Closed lmendo closed 7 years ago

lmendo commented 7 years ago

Sorry about such basic question but the docummentation is not very clear on that. There's the statement

I WANT TO ASK YOU A BUNCH OF QUESTIONS AND I WANT TO HAVE THEM ANSWERED IMMEDIATELY

but I don't know if it reads from STDIN or elsewhere, and then how to use the read value, for example to assign it to a variable.

Thanks for any advice

ghost commented 7 years ago

HEY CHRISTMAS TREE read YOU SET US UP @NO PROBLEMO GET YOUR ASS TO MARS read DO IT NOW I WANT TO ASK YOU A BUNCH OF QUESTIONS AND I WANT TO HAVE THEM ANSWERED IMMEDIATELY TALK TO THE HAND read

https://github.com/lhartikk/ArnoldC/blob/master/src/test/scala/org/arnoldc/InputTest.scala

lmendo commented 7 years ago

Working! Thanks