Module parser

Module parser 

Source
Expand description

Shell language parser configuration and utilities

This module contains several items related to the shell language parser.

  • Config is a struct that holds configuration options for the parser.
  • IsKeyword is a wrapper for a function that checks if a string is a reserved word.
  • IsName is a wrapper for a function that checks if a string is a valid variable name.

Parser implementations are not provided in this crate (yash-env). The standard parser implementation is provided in the yash-syntax crate.

Structsยง

Config
Configuration for the parser
IsKeyword
Wrapper for a function that checks if a string is a keyword
IsName
Wrapper for a function that checks if a string is a valid variable name