PageRenderTime 37ms CodeModel.GetById 34ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

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