lispToMmix/js/errors.js
2022-10-21 23:57:06 +02:00

9 lines
296 B
JavaScript

import { error } from "./lexer.js"
export const argsCount = (name,num,pos)=>{
error(`The native function '${name}' needs at least ${num} Arguments!`, ...pos);
}
export const argCount = (name,num,pos)=>{
error(`The native function '${name}' needs ${num} Arguments!`, ...pos);
}