t2.lua 417 B

123456789101112131415161718192021222324252627282930313233343536
  1. source = {}
  2. sink = {}
  3. pump = {}
  4. filter = {}
  5. -- filter.chain
  6. dofile("ex3.lua")
  7. -- normalize
  8. require"gem"
  9. eol = gem.eol
  10. dofile("ex2.lua")
  11. -- encode
  12. require"mime"
  13. encode = mime.encode
  14. -- wrap
  15. wrap = mime.wrap
  16. -- source.chain
  17. dofile("ex6.lua")
  18. -- source.file
  19. dofile("ex5.lua")
  20. -- sink.file
  21. require"ltn12"
  22. sink.file = ltn12.sink.file
  23. -- pump.all
  24. dofile("ex10.lua")
  25. -- run test
  26. CRLF = "\013\010"
  27. dofile("ex4.lua")