nsbaci 1.0
Loading...
Searching...
No Matches
compiler.h File Reference

Abstract Compiler class declaration for nsbaci. More...

Include dependency graph for compiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsbaci::compiler::CompilerResult
 Result of a compilation operation. More...
class  nsbaci::compiler::Compiler
 Abstract base class for all compilers. More...

Namespaces

namespace  nsbaci::compiler
 Compiler namespace containing all compilation-related stuff.
namespace  nsbaci
 Root namespace for the nsbaci application.

Detailed Description

Abstract Compiler class declaration for nsbaci.

This module defines the abstract Compiler interface that all compiler implementations must follow. The Compiler is responsible for transforming nsbaci source code into an executable instruction stream (p-code) that can be run by the virtual machine interpreter.

The design follows the Strategy pattern, allowing different compiler implementations to be plugged in. Currently, NsbaciCompiler is the primary implementation using flex/bison for lexical analysis and parsing.

Author
Nicolás Serrano García