1252884aeSStefan Eßer$ $ 23aa99676SStefan Eßer$ SPDX-License-Identifier: BSD-2-Clause 3252884aeSStefan Eßer$ $ 4a970610aSStefan Eßer$ Copyright (c) 2018-2024 Gavin D. Howard and contributors. 5252884aeSStefan Eßer$ $ 6252884aeSStefan Eßer$ Redistribution and use in source and binary forms, with or without 7252884aeSStefan Eßer$ modification, are permitted provided that the following conditions are met: 8252884aeSStefan Eßer$ $ 9252884aeSStefan Eßer$ * Redistributions of source code must retain the above copyright notice, this 10252884aeSStefan Eßer$ list of conditions and the following disclaimer. 11252884aeSStefan Eßer$ $ 12252884aeSStefan Eßer$ * Redistributions in binary form must reproduce the above copyright notice, 13252884aeSStefan Eßer$ this list of conditions and the following disclaimer in the documentation 14252884aeSStefan Eßer$ and/or other materials provided with the distribution. 15252884aeSStefan Eßer$ $ 16252884aeSStefan Eßer$ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17252884aeSStefan Eßer$ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18252884aeSStefan Eßer$ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19252884aeSStefan Eßer$ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 20252884aeSStefan Eßer$ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21252884aeSStefan Eßer$ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22252884aeSStefan Eßer$ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23252884aeSStefan Eßer$ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24252884aeSStefan Eßer$ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25252884aeSStefan Eßer$ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26252884aeSStefan Eßer$ POSSIBILITY OF SUCH DAMAGE. 27252884aeSStefan Eßer$ $ 28252884aeSStefan Eßer 29252884aeSStefan Eßer$quote " 30252884aeSStefan Eßer 31252884aeSStefan Eßer$ Error types. 32d101cdd6SStefan Eßer$set 1 33252884aeSStefan Eßer 34252884aeSStefan Eßer1 "Math error:" 35252884aeSStefan Eßer2 "Parse error:" 36252884aeSStefan Eßer3 "Runtime error:" 37252884aeSStefan Eßer4 "Fatal error:" 38252884aeSStefan Eßer5 "Warning:" 39252884aeSStefan Eßer 40252884aeSStefan Eßer$ Math errors. 41d101cdd6SStefan Eßer$set 2 42252884aeSStefan Eßer 43252884aeSStefan Eßer1 "negative number" 44252884aeSStefan Eßer2 "non-integer number" 45252884aeSStefan Eßer3 "overflow: number does not fit into a hardware number" 46252884aeSStefan Eßer4 "divide by 0" 47252884aeSStefan Eßer 48252884aeSStefan Eßer$ Parse errors. 49d101cdd6SStefan Eßer$set 3 50252884aeSStefan Eßer 51252884aeSStefan Eßer1 "end of file" 52252884aeSStefan Eßer2 "invalid character '%c'" 53252884aeSStefan Eßer3 "string end cannot be found" 54252884aeSStefan Eßer4 "comment end cannot be found" 55252884aeSStefan Eßer5 "invalid token" 56252884aeSStefan Eßer6 "invalid expression" 57252884aeSStefan Eßer7 "empty expression" 5844d4804dSStefan Eßer8 "invalid print or stream statement" 59252884aeSStefan Eßer9 "invalid function definition" 60252884aeSStefan Eßer10 "invalid assignment: left side must be scale, ibase, obase, seed, last, var, or array element" 61252884aeSStefan Eßer11 "no auto variable found" 62252884aeSStefan Eßer12 "function parameter or auto \"%s%s\" already exists" 63252884aeSStefan Eßer13 "block end cannot be found" 64252884aeSStefan Eßer14 "cannot return a value from void function: %s()" 65252884aeSStefan Eßer15 "var cannot be a reference: %s" 66252884aeSStefan Eßer16 "POSIX does not allow names longer than 1 character: %s" 67252884aeSStefan Eßer17 "POSIX does not allow '#' script comments" 68252884aeSStefan Eßer18 "POSIX does not allow the following keyword: %s" 69252884aeSStefan Eßer19 "POSIX does not allow a period ('.') as a shortcut for the last result" 70252884aeSStefan Eßer20 "POSIX requires parentheses around return expressions" 71252884aeSStefan Eßer21 "POSIX does not allow the following operator: %s" 72252884aeSStefan Eßer22 "POSIX does not allow comparison operators outside if statements or loops" 73252884aeSStefan Eßer23 "POSIX requires 0 or 1 comparison operators per condition" 74252884aeSStefan Eßer24 "POSIX requires all 3 parts of a for loop to be non-empty" 7578bc019dSStefan Eßer25 "POSIX requires a newline between a semicolon and a function definition" 7610041e99SStefan Eßer26 "POSIX does not allow exponential notation" 7710041e99SStefan Eßer27 "POSIX does not allow array references as function parameters" 7878bc019dSStefan Eßer28 "POSIX does not allow void functions" 7910041e99SStefan Eßer29 "POSIX requires the left brace be on the same line as the function header" 8010041e99SStefan Eßer30 "POSIX does not allow strings to be assigned to variables or arrays" 81252884aeSStefan Eßer 82252884aeSStefan Eßer$ Runtime errors. 83d101cdd6SStefan Eßer$set 4 84252884aeSStefan Eßer 85252884aeSStefan Eßer1 "invalid ibase: must be [%lu, %lu]" 86252884aeSStefan Eßer2 "invalid obase: must be [%lu, %lu]" 87252884aeSStefan Eßer3 "invalid scale: must be [%lu, %lu]" 88252884aeSStefan Eßer4 "invalid read() expression" 89252884aeSStefan Eßer5 "recursive read() call" 90252884aeSStefan Eßer6 "variable or array element is the wrong type" 91252884aeSStefan Eßer7 "stack has too few elements" 9244d4804dSStefan Eßer8 "stack for register \"%s\" has too few elements" 9344d4804dSStefan Eßer9 "wrong number of parameters; need %zu, have %zu" 9444d4804dSStefan Eßer10 "undefined function: %s()" 9544d4804dSStefan Eßer11 "cannot use a void value in an expression" 96252884aeSStefan Eßer 97252884aeSStefan Eßer$ Fatal errors. 98d101cdd6SStefan Eßer$set 5 99252884aeSStefan Eßer 100252884aeSStefan Eßer1 "memory allocation failed" 101252884aeSStefan Eßer2 "I/O error" 102252884aeSStefan Eßer3 "cannot open file: %s" 10344d4804dSStefan Eßer4 "file is not text: %s" 104252884aeSStefan Eßer5 "path is a directory: %s" 105252884aeSStefan Eßer6 "invalid command-line option: \"%s\"" 106252884aeSStefan Eßer7 "option requires an argument: '%c' (\"%s\")" 107252884aeSStefan Eßer8 "option takes no arguments: '%c' (\"%s\")" 10844d4804dSStefan Eßer9 "invalid command-line option argument: \"%s\"" 109