2009-03-10 17:14:39 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								USING:  peg.ebnf  help.syntax  help.markup  strings  ;
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								IN:  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  
						 
					
						
							
								
									
										
										
										
											2009-03-16 04:29:16 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "name"  string  } { "parser"  parser } }
							 
						 
					
						
							
								
									
										
										
										
											2009-03-10 19:22:31 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $description "Runtime equivalent of "  { $link POSTPONE:  ON-BNF:  } " also useful with manually constructed parsers."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  factor  
						 
					
						
							
								
									
										
										
										
											2009-03-16 04:29:16 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "input"  string  } { "ast"  "a sequence of tokens"  } }
							 
						 
					
						
							
								
									
										
										
										
											2009-03-10 19:22:31 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $description "Tokenizer that acts like standard factor lexer, separating tokens by whitespace."  } ;