Class CLI

The Command Line frontend, uses other ludit modules to parse & compute expressions

Hierarchy

  • CLI

    Hierarchy

Constructors

  • Parameters

    • options: argv
    • noRun: boolean = false

    Returns CLI

Properties

attributes: attributeConfig

The current line's attribute config

expression: string

The current line's raw expression

globalProfile: undefined | string

The global profile if specified, Will force every expression to adopt this profile

heap: Heap

The program's Heap instance

includeLineNb: number

Total lines of included files

noprint: boolean

Whether to print the tables or not

options: Map<option>

The parsed cli options

path: undefined | string

The path of the running file

profile: string

The current line's profile

tree: TreeNode

The root TreeNode of the current Line

DEFAULT_ATTRIBUTE_CONFIG: attributeConfig = ...
FALSE_ATTRIBUTE_CONFIG: attributeConfig = ...

Methods

  • Parameters

    • line: string

    Returns { line: string; skip: boolean }

    • line: string
    • skip: boolean
  • Parameters

    • isDef: boolean
    • currentLine: number

    Returns string

  • Parameters

    • filename: string

    Returns void

  • Parameters

    • fileLine: string
    • preparsedLine: string
    • currentLine: number
    • rawLineNb: number

    Returns boolean

  • Parameters

    • _input: string

    Returns void

  • Parameters

    • Optional filename: string

    Returns string

  • Parameters

    • profile: string

    Returns void

  • Parameters

    • totalLines: number
    • rawFileLength: number

    Returns void

  • Parameters

    • state: boolean

    Returns void

  • Parameters

    • expression: string
    • values: string
    • profile: string

    Returns string

Generated using TypeDoc