Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 395
    • Issues 395
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Wiki
  • Error messages
  • Empty file error

Empty file error · Changes

Page history
Introduced directories into the wiki and added content based on my talk with... authored Feb 07, 2025 by Quinten Cabo's avatar Quinten Cabo
Introduced directories into the wiki and added content based on my talk with Bodo and my own thoughts
Hide whitespace changes
Inline Side-by-side
error-messages/Empty-file-error.md 0 → 100644
View page @ de8600b9
We could improve the error that you get when you try to compile an empty file by adding an example hello world program.
## Error now:
```
Error:
No declaration of module, class, or main function given
Compilation failed while Loading SAC program, 1 error(s).
```
## Error Proposal
```
Error:
No declaration of module, class, or main function given
Compilation failed while Loading SAC program, 1 error(s).
Every program needs 1 main function.
Try a hello world program like this:
int main() {
show("Hello world!");
}
```
\ No newline at end of file
Clone repository
  • concepts
    • Deprecated Modules
    • Globals
    • Named Tuples
    • Overloading
    • Preprocessor
    • Primitive functions
    • Runetime Representations
    • input stdin
    • phm xt
    • ref counting methods
    • type famlies
    • type patterns
  • error messages
    • Anthropomorphic error essages
    • Colored error messages
    • Empty file error
View All Pages