peg-lexer: fix help lint
							parent
							
								
									f1197fe327
								
							
						
					
					
						commit
						cac26d7b44
					
				| 
						 | 
				
			
			@ -1,14 +1,14 @@
 | 
			
		|||
USING: peg.ebnf help.syntax help.markup strings ;
 | 
			
		||||
IN: peg-lexer
 | 
			
		||||
ABOUT: "peg-lexer"
 | 
			
		||||
 | 
			
		||||
HELP: ON-BNF:
 | 
			
		||||
{ $syntax "ON-BNF: word ... ;ON-BNF" }
 | 
			
		||||
{ $description "Creates a parsing word using a parser for lexer control, adding the resulting ast to the stack.  Parser syntax is as in " { $link POSTPONE: EBNF: } } ;
 | 
			
		||||
 | 
			
		||||
HELP: create-bnf
 | 
			
		||||
{ $values { "word" string } { "parser" parser } }
 | 
			
		||||
{ $values { "name" string } { "parser" parser } }
 | 
			
		||||
{ $description "Runtime equivalent of " { $link POSTPONE: ON-BNF: } " also useful with manually constructed parsers." } ;
 | 
			
		||||
 | 
			
		||||
HELP: factor
 | 
			
		||||
{ $values { "input" string } { "ast" "a sequence of tokens" } }
 | 
			
		||||
{ $description "Tokenizer that acts like standard factor lexer, separating tokens by whitespace." } ;
 | 
			
		||||
		Loading…
	
		Reference in New Issue