로딩중...
검색중...
일치하는것 없음
Frontend

Command Line Interface frontend for the byeol language. Provides the main entry point and user interface for interacting with the byeol language system through command line operations. 더 자세히 ...

클래스

class  by::bufferSrcFlag
 Flag for providing frontend source code directly as a string argument 더 자세히 ...
 
class  by::fileFlag
 Flag for specifying a frontend source code file to load and execute 더 자세히 ...
 
class  by::helpFlag
 Flag for displaying command-line interface help information 더 자세히 ...
 
class  by::logStructureFlag
 Flag for enabling logging of the Abstract Syntax Tree (AST) or program structure 더 자세히 ...
 
class  by::verboseFlag
 Flag for enabling verbose logging output 더 자세히 ...
 
class  by::verFlag
 Flag for displaying application version information 더 자세히 ...
 

타입정의

typedef tnarr< nStrby::flagStrs
 Command-line interface for frontend language system
 

상세한 설명

Command Line Interface frontend for the byeol language. Provides the main entry point and user interface for interacting with the byeol language system through command line operations.

타입정의 문서화

◆ flagStrs

Command-line interface for frontend language system

Core class of the frontend module. Uses interpreter from the core module to parse, verify, and evaluate code, coordinating appropriate classes for these processes. Rather than implementing algorithms itself, cli orchestrates well-designed classes.

Receives user-entered arguments to the CLI program as parameters and parses them to perform additional commands. See the flags folder for details.

Core algorithm

When user calls eval() with flagArgs parameter, execution proceeds as follows:

  1. Create interpreter, errReport, starter objects
  2. Set flags on interpreter and starter (refers to worker flags, different from cli's flag. See worker for details)
  3. Parse flagArgs to perform preliminary work (executed by calling take() on flag object)
  4. Execute interpreter
  5. Check interpretation results. If issues exist, output results and terminate
  6. If no issues, put verified AST into starter and execute
  7. Return starter's result
to Top