Skip to content
Kelvin DeCosta edited this page Nov 16, 2019 · 2 revisions

run

This subcommand loads a Turing Machine from a file and performs computation on an input string.

Run a Turing Machine

Usage:
  alan run file [flags]

Flags:
  -h, --help             help for run
  -i, --input string     input string
  -m, --max-steps uint   maximum steps before forced halt (default 200)

Example

  • alan run _examples/binary-palindrome.aln -i 101
    Accepted
    
  • alan run _examples/binary-palindrome.aln -i 1010
    Rejected
    
Clone this wiki locally