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

NsbaciCompiler class declaration for nsbaci. More...

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

Go to the source code of this file.

Classes

class  nsbaci::compiler::NsbaciCompiler
 nsbaci compiler implementation using flex and bison. More...

Namespaces

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

Detailed Description

NsbaciCompiler class declaration for nsbaci.

This module provides the concrete nsbaci implementation of the Compiler interface. NsbaciCompiler uses flex for lexical analysis and bison for parsing to compile BACI source code into p-code instructions.

The compiler supports:

  • Basic types: int, bool, char
  • Arithmetic and comparison operators
  • Control flow: if/else, while, for loops
  • C++ style I/O: cout << and cin >>
  • Variable declarations with optional initialization
  • Compound assignment operators (+=, -=, etc.)

Future features (not yet implemented):

  • Functions and procedures
  • Concurrency primitives (cobegin/coend, semaphores, monitors)
  • Arrays and strings
Author
Nicolás Serrano García