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 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • 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
  • Missing common functions

Missing common functions · 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/Missing common functions.md 0 → 100644
View page @ de8600b9
Hardcoded missing functions.
For instance if `print` does not exist it should tell you to `use StdIO: all;`
To realize this we could create a table of functions in the standard library.
Before emmiting a general could not find function we could first look if a matching function exists in this table.
# Example
### Code
```
int main() {
printf("Hey there!")
return 0;
}
```
### Error:
```
I could not find the printf function.
2 | printf("Hey there!")
^^^^^^
To use this function you should add use `StdIO: all;`
```
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