/core/classes/tuple/parser/parser-docs.factor

http://github.com/abeaumont/factor · Factor · 14 lines · 13 code · 1 blank · 0 comment · 0 complexity · 5e15796e72b4bf34de4c1831a6630163 MD5 · raw file

  1. IN: classes.tuple.parser
  2. USING: strings help.markup help.syntax ;
  3. HELP: invalid-slot-name
  4. { $values { "name" string } }
  5. { $description "Throws an " { $link invalid-slot-name } " error." }
  6. { $error-description "Thrown by " { $link POSTPONE: TUPLE: } " and " { $link POSTPONE: ERROR: } " if a suspect token appears as a slot name." }
  7. { $notes "The suspect tokens are chosen so that the following code raises this parse error, instead of silently greating a tuple with garbage slots:"
  8. { $code
  9. "TUPLE: my-mistaken-tuple slot-a slot-b"
  10. ""
  11. ": some-word ( a b c -- ) ... ;"
  12. }
  13. } ;