xXm0dzXx

Untitled

Nov 4th, 2012
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. print("ByteFawk Simulator Maker Simulator")
  2. print("Workspace: ")
  3. print("print(\" + ")
  4.  
  5. local tLines = {}
  6. while true do
  7. local line = read()
  8. if line ~= "~ stop" then
  9. tLines[#tLines+1] = line
  10. else
  11. break
  12. end
  13. end
  14. print(" + \")")
  15.  
  16. fs.delete("generated_file")
  17. theFile = fs.open("generated_file", "w")
  18. theFile.write( ("= < " ..math.random(1,309) ).. "\n" )
  19. for i=1,#tLines do
  20. for ix=1,#tLines[i] do
  21. theFile.write("- > " ..string.byte( string.sub( tLines[i], ix, ix ) ).. "\n" )
  22. end
  23. theFile.write("= > " ..math.random(1,300).. "\n" )
  24. end
  25. theFile.write("= > " ..math.random(1,300).. "\n" )
  26.  
  27. theFile.close()
Advertisement
Add Comment
Please, Sign In to add comment