Crate chalk

source ยท

Structsยง

  • Args ๐Ÿ”’
    This struct represents the various command line options available.
  • LoadedProgram ๐Ÿ”’
    A loaded and parsed program.

Constantsยง

Functionsยง

  • help ๐Ÿ”’
    Print out help for commands in interpreter mode.
  • load_program ๐Ÿ”’
    Load the file into a string, and parse it.
  • main ๐Ÿ”’
  • process ๐Ÿ”’
    Process a single command. args is a struct containing the command-line arguments, and prog is a parsed .chalk file.
  • read_program ๐Ÿ”’
    Read a program from the command-line. Stop reading when EOF is read. If an error occurs while reading, a Err is returned.
  • readline_loop ๐Ÿ”’
    Reads input lines from the user. Lines start with the string given by prompt. Each line the user enters is passed to the function f for processing.
  • run ๐Ÿ”’

Type Aliasesยง