working eith files

66 views
Skip to first unread message

lior gonen

unread,
Mar 6, 2013, 3:41:56 PM3/6/13
to gosu...@googlegroups.com
what are the operations that can do with files (example : read / write to file , read/write char by char )
 
and i would ike to know what the beginig of working with files ( i need to do a projecet that that react like compailer (read strings form file that represent bycod and creat from this the assmbly code etc.)
 
thanks,
 
lior 

Michael Wright

unread,
Mar 6, 2013, 4:04:51 PM3/6/13
to gosu...@googlegroups.com
Have you looked at the lazy-gosu site?

e.g., > http://lazygosu.org/strings.html

has examples.


 
lior 

--
You received this message because you are subscribed to the Google Groups "gosu-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gosu-lang+...@googlegroups.com.
To post to this group, send email to gosu...@googlegroups.com.
Visit this group at http://groups.google.com/group/gosu-lang?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mike

lior gonen

unread,
Mar 7, 2013, 12:44:12 PM3/7/13
to gosu...@googlegroups.com
i saw that site but i it is very genneraly
 
does  somone have tatutrial or things like this?
 
lior

Luke

unread,
Mar 7, 2013, 12:51:56 PM3/7/13
to gosu...@googlegroups.com
Could you give us more information on the project that you want to accomplish?

Michael Wright

unread,
Mar 7, 2013, 2:34:12 PM3/7/13
to gosu...@googlegroups.com
What are you trying to do?



--
You received this message because you are subscribed to the Google Groups "gosu-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gosu-lang+...@googlegroups.com.
To post to this group, send email to gosu...@googlegroups.com.
Visit this group at http://groups.google.com/group/gosu-lang?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mike

lior gonen

unread,
Mar 10, 2013, 7:03:25 AM3/10/13
to gosu...@googlegroups.com
i asked to build Compiler (it is on Principles of Programming Languages' course) and i get Gosu to be language. the first step is to read command on VM language and to transelate it to assmbler. the transelate should be on Gosu code.

 

for this i need to read lines from text file isolate the commands and decide what is the meaning on assembler.
then generate dummy code on assembler and write it to another text file.
 
finally i understood that i must learn JAVA and the language code it almost the same. i think i get started well, but still i don't know how to add libraries of appache io , it should very hlep end make the code be clean and short.
 
does anyone know how to add it?
 
this is the link and i downloaded the zip file but don't know where and how to install it?
 
thanks
 
lior

 

 

On Wednesday, March 6, 2013 10:41:56 PM UTC+2, lior gonen wrote:

Luca Boasso

unread,
Mar 10, 2013, 7:23:14 PM3/10/13
to gosu...@googlegroups.com
So let me better understand.
You are following a 'Principles of Programming Languages' course and
you want to build a compiler using Gosu as implementation language,
right?
To use commons-io in Intellij just got to Project structure -> Library
and press the plus button to add commons-io-2.4.jar

lior gonen

unread,
May 23, 2013, 11:45:33 AM5/23/13
to gosu...@googlegroups.com
corect
until now iget better, based on programing java tips
 
thanks.
 
lior
Reply all
Reply to author
Forward
0 new messages