lexer: cleanup docs for $slots.

master
John Benediktsson 2020-05-27 09:47:38 -07:00
parent 10e19a3944
commit 3ee93ee68d
1 changed files with 4 additions and 4 deletions

View File

@ -5,10 +5,10 @@ IN: lexer
HELP: lexer HELP: lexer
{ $var-description "Stores the current " { $link lexer } " instance." } { $var-description "Stores the current " { $link lexer } " instance." }
{ $class-description "An object for tokenizing parser input. It has the following slots:" { $class-description "An object for tokenizing parser input. It has the following slots:"
{ $list { $slots
{ { $snippet "text" } " - the lines being parsed; an array of strings" } { "text" "the lines being parsed; an array of strings" }
{ { $snippet "line" } " - the line number being parsed; unlike most indices this is 1-based for friendlier error reporting and integration with text editors" } { "line" "the line number being parsed; unlike most indices this is 1-based for friendlier error reporting and integration with text editors" }
{ { $snippet "column" } " - the current column position, zero-based" } { "column" "the current column position, zero-based" }
} }
"Custom lexing can be implemented by delegating a tuple to an instance of this class and implementing the " { $link skip-word } " and " { $link skip-blank } " generic words." } ; "Custom lexing can be implemented by delegating a tuple to an instance of this class and implementing the " { $link skip-word } " and " { $link skip-blank } " generic words." } ;