BashSpark
Loading...
Searching...
No Matches
bs::shell_tokenizer Class Reference

#include <shell_tokenizer.h>

Static Public Member Functions

static std::vector< shell_tokentokens (ifakestream &oStdIn)
 Tokenizes input from the standard input stream.
 

Detailed Description

Warning
Use with caution, not foolproof

Member Function Documentation

◆ tokens()

std::vector< shell_token > bs::shell_tokenizer::tokens ( ifakestream oStdIn)
static

Tokenizes input from the standard input stream.

Parameters
oStdInThe input fake stream to read commands from.
Returns
A vector of shell_token instances representing the parsed tokens.
Exceptions
shell_exceptionIf a syntax error is detected

This method reads from the provided input stream and generates tokens until the end of the input is reached.


The documentation for this class was generated from the following files: