package
Version:
v0.8.3
Opens a new window with list of versions in this module.
Published: Sep 14, 2023
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package parser provides a recursive descent parser for the oh language.
T holds the state of the parser.
New creates a new parser.
It connects a producer of tokens with a consumer of cells.
Copy copies the current parser but replaces its emit and item functions.
Current returns the command currently being parsed.
func (p *T) Parse() (err error)
Parse consumes tokens and emits cells until there are no more tokens.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.