User Tools

Site Tools


cs330_f2016:laby

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cs330_f2016:laby [2018/09/26 17:53]
morse
cs330_f2016:laby [2018/09/26 18:03]
morse
Line 20: Line 20:
 You should not modify the ''​Lexer.jl''​ or ''​Error.jl'',​ and these will stay the same for all of the interpreter assignments. You should not modify the ''​Lexer.jl''​ or ''​Error.jl'',​ and these will stay the same for all of the interpreter assignments.
  
-After playing with it to make sure it's working and you have everything set up correctly, make a copy of ''​CI0.jl''​ and name it ''​RudInt.jl''​ (short for "​Rudimentary Interpreter",​ or this assignment). You should then edit ''​RudInt.jl''​ using the provided CI0 interpreter as a base.  Remember to change the name of the module defined within the file to ``RudInt''​ as well.+After playing with it to make sure it's working and you have everything set up correctly, make a copy of ''​CI0.jl''​ and name it ''​RudInt.jl''​ (short for "​Rudimentary Interpreter",​ or this assignment). You should then edit ''​RudInt.jl''​ using the provided CI0 interpreter as a base.  Remember to change the name of the module defined within the file to ''​RudInt''​ as well.
  
 For code development,​ you may wish to use any of the following: For code development,​ you may wish to use any of the following:
Line 151: Line 151:
  
 <code julia> <code julia>
-using Revise+using Revise ​# make sure to load before the others
 using Error using Error
 using Lexer using Lexer
Line 161: Line 161:
   -Make sure the function stored in your binop are native Julia functions.   -Make sure the function stored in your binop are native Julia functions.
   -Make sure the ''​julia''​ binary is in your executable path (like you did for ''​racket''​ previously)   -Make sure the ''​julia''​ binary is in your executable path (like you did for ''​racket''​ previously)
-  -Make sure the path for the Error and Lexer files are on you Julia path. To do this you can call ''​JULIA_LOAD_PATH=PATH python ....''​ or you can add ''​push!(LOAD_PATH,​pwd())''​ into your ''​.juliarc''​ file.+  -Make sure the path for the Error and Lexer files are on you Julia path. To do this you can add ''​push!(LOAD_PATH,​pwd())''​ into your ''​~/.julia/​config/​startup.jl''​ file, then just make sure to run the autograder from the same directory in which you have RudInt, Lexer, and Error.
   -Inside your module have the lines ''​using Error''​ and ''​using Lexer''​. ​ (These should already be in the base code we give you to start with.)   -Inside your module have the lines ''​using Error''​ and ''​using Lexer''​. ​ (These should already be in the base code we give you to start with.)
cs330_f2016/laby.txt ยท Last modified: 2021/06/30 23:42 (external edit)