How yaminmusleh/nexcore-project works
NexCore is a compiler for .nex programs, with a separate Qt desktop editor. The compiler workflow reads a source file, scans and parses it into AST nodes, generates assembly, then invokes NASM and the linker to produce an executable. Studio adds editing, file navigation, compiler diagnostics, and optional program execution. The graph includes the documented language capabilities; implementation details for generated parser/scanner internals and some Studio wiring were not sampled, so those relationships are shown only where the README or excerpts support them.
Main entry points: MainWindow.cpp Main Window · main.cpp Compiler Entry · BuildController.cpp Build Controller · generation.h Assembly Generator
Components 23
Compiler
- Compiler Entry
src/main.cpp - Assembly Generator
src/generation.h - Assembly Output
Language Front End
- Scanner
generated/Scanner.cpp - Parser
generated/Parser.cpp - Grammar Actions
docs/Nex.atg - AST Builders
src/parser_support.cpp - AST Nodes
src/ast.h - Arena Allocator
src/arena.h
NexCore Studio
- Studio Application
studio/src/main.cpp - Main Window
studio/src/MainWindow.cpp - Code Editor
studio/src/CodeEditor.cpp - Syntax Highlighter
studio/src/NexHighlighter.cpp - File Sidebar
studio/src/Sidebar.cpp - Find Bar
studio/src/FindBar.cpp - Welcome Page
studio/src/WelcomePage.cpp - Build Controller
studio/src/BuildController.cpp - Output Panel
studio/src/OutputPanel.cpp
Build Integrations
- NASM Assembler
- System Linker
Other components
- Programmer
- Nex Source
- Program Executable
Connections 29
- Programmer → Nex Source: writes
README.md - Nex Source → Compiler Entry: opens
src/main.cpp - Compiler Entry → Scanner: constructs
src/main.cpp - Compiler Entry → Parser: parses with
src/main.cpp - Parser → AST Builders: builds via
README.md - Parser → AST Nodes: constructs
README.md - AST Builders → Arena Allocator: allocates in
- AST Builders → AST Nodes: creates
- Compiler Entry → Assembly Generator: generates with
src/main.cpp - Assembly Generator → AST Nodes: reads
- Assembly Generator → Assembly Output: produces
- Compiler Entry → NASM Assembler: invokes
src/main.cpp - Assembly Output → NASM Assembler: assembles
- Compiler Entry → System Linker: invokes
src/main.cpp - NASM Assembler → System Linker: provides object
- System Linker → Program Executable: links
- Programmer → Studio Application: opens
- Studio Application → Main Window: creates
studio/src/main.cpp - Main Window → Code Editor: hosts
studio/src/MainWindow.cpp - Main Window → Syntax Highlighter: uses
studio/src/MainWindow.cpp - Main Window → File Sidebar: uses
studio/src/MainWindow.cpp - Main Window → Find Bar: uses
studio/src/MainWindow.cpp - Main Window → Welcome Page: shows
studio/src/MainWindow.cpp - Main Window → Build Controller: starts builds
studio/src/MainWindow.cpp - Build Controller → Compiler Entry: runs
studio/src/BuildController.cpp - Build Controller → Program Executable: runs after build
studio/src/BuildController.cpp - Main Window → Output Panel: displays results
studio/src/MainWindow.cpp - Build Controller → Output Panel: streams output
- Build Controller → Code Editor: reports diagnostics