Loading...
Searching...
No Matches
by::bufferSrcFlag Class Reference

Flag for providing frontend source code directly as a string argument. More...

#include <bufferSrcFlag.hpp>

Inheritance diagram for by::bufferSrcFlag:

Public Member Functions

 bufferSrcFlag (cli &c)
 
const nchargetName () const override
 
const nchargetDescription () const override
 
ncnt getArgCount () const override
 

Protected Member Functions

const strings & _getRegExpr () const override
 
res _onTake (const flagArgs &tray) const override
 

Detailed Description

Flag for providing frontend source code directly as a string argument.

This flag allows users to pass frontend source code as a string, which is then parsed and executed by the interpreter. It consumes one additional argument for the source code string.

// Example usage:
// frontend --script "main() void: print(\"Hello, world!\")"

The documentation for this class was generated from the following file:
to Top