2
0

README 593 B

12345678910111213141516171819202122
  1. Example to demonstrate ConsCompiler and ConsLog.
  2. ConsCompiler allows to compile sources stored in "txt" format.
  3. ConsLog provides realisation for the Log abstract interface.
  4. Author of the example: Ivan Denisov, denisov@molpit.org
  5. Installation and demonstration
  6. 1. Prepare Interp version of BlackBox in "Linux_Interp" folder:
  7. ./switch-target `uname -s` Interp
  8. ./build
  9. ./export ../Linux_Interp
  10. 2. Compile this example:
  11. cd ../examples/console
  12. echo "ConsCompiler.Compile('System/Mod', 'Init.txt')" | ./runc
  13. 3. For demonstration run:
  14. ./runc 123 123
  15. Output will contain: "Summ: 246.0".