|
|
|
|
|
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;`
|
|
|
```
|
|
|
|