Original Parser

version 1 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 3 - Rules and Routines

    To decide what rule producing truth states is the nothing rule: (- 0 -).
    To decide if (r - a rule producing a truth state) returns true: (- {r}() -).
    To decide which parser result is the parser result produced by (r - a rule producing truth states): (- {r}() -).
    To consider (r - a rule) directly: (- {r}(); -).
    To consider (r - an object based rule producing nothing) for (obj - an object) directly: (- {r}({obj}); -).
    To consider (prop - a rule valued property) of (obj - an object) directly: (- RunRoutines({obj}, {prop}); -).
    To decide which parser result is (r - a topic) applied to (s - a snippet): (- {r}({s}/100, {s}%100) -).
    To decide which parser result is (r - a topic) applied to (pos - a number): (- {r}({pos},0) -).
    To decide what number is (prop - a rule valued property) of (obj - an object) considered directly: (- RunRoutines({obj}, {prop}) -).

    [ rule + object ]
    To decide whether (v - a word value) is currently a rule: (- ({v} ofclass Routine) -).
    To decide whether (v - a pointer value) is currently a rule: (- ({v} ofclass Routine) -).

    [ property + truth state ]
    To decide which understood word valued property is (names - an understood word valued property) rule considered for (wd - an understood word) and (obj - an object): (- (0 - {names}({obj}, {wd})) -).