JustBash.Parser.Lexer.BraceExpansion (JustBash v0.4.0)

View Source

Brace expansion token merging for the bash lexer.

Handles sequences like {a,b,c} or {1..10} by merging tokens:

  • [word?, lbrace, content, rbrace, word?]

Into a single word token when the content contains , or ...

Summary

Functions

Process tokens to merge brace expansions into single word tokens.

Functions

process(tokens)

Process tokens to merge brace expansions into single word tokens.