examples.txt 911 B

123456789101112131415161718192021222324252627
  1. Examples
  2. ========
  3. To run this code, store it in a file (*e.g.*, test.alc), and execute the following commands::
  4. python scripts/run_local_modelverse.py 8001 &
  5. python scripts/make_parallel.py http://localhost:8001 test test.alc bootstrap/primitives.alc
  6. python scripts/prompt.py
  7. In the prompt, log on to http://localhost:8001 as user *test*.
  8. Now, all input you send, will be caught in the *input()* calls seen in the code.
  9. Results will also be printed.
  10. Note that all content will, by default, be typed as string.
  11. If you want to send integers or so, prepend the input with a backslash (\\), which allows you to directly input the JSON code.
  12. For example, input *5* will be received as the string "5".
  13. To send the integer 5, the input should be *\\5*.
  14. Simple Fibonacci Server
  15. -----------------------
  16. Simple Petri Net Server
  17. -----------------------
  18. Generic Modelling Server
  19. ------------------------