Coreutils++
The GNU Coreutils implemented in C++
Loading...
Searching...
No Matches
coreutils::detail Namespace Reference

Classes

struct  ComptimeString
struct  ArgumentBase
struct  ArgumentBase<"">
struct  Argument
struct  Argument< T, NArgs::Many, Converter, Names... >
struct  Argument< T, NArgs::Many, Converter, "">
struct  Argument< T, NArgs::None, Converter, Names... >
struct  Argument< T, NArgs::One, Converter, Names... >

Enumerations

enum class  ParseState : std::uint8_t { Start , Seeking , End }
enum struct  NArgs : std::uint8_t { None , One , Many }

Enumeration Type Documentation

◆ NArgs

enum struct coreutils::detail::NArgs : std::uint8_t
strong
Enumerator
None 
One 
Many 

◆ ParseState

enum class coreutils::detail::ParseState : std::uint8_t
strong

Represents a possible state of an Argument As it goes along the parsing process. State transitions should be 100% deterministic and proceed with each token consumed from the command line. This should theortically be modelable with a DFA:

Enumerator
Start 
Seeking 
End