lispToMmix/js/errors.js

10 lines
296 B
JavaScript
Raw Permalink Normal View History

2022-10-21 23:57:06 +02:00
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);
}