1$ $ 2$ SPDX-License-Identifier: BSD-2-Clause 3$ $ 4$ Copyright (c) 2018-2021 Gavin D. Howard and contributors. 5$ $ 6$ Redistribution and use in source and binary forms, with or without 7$ modification, are permitted provided that the following conditions are met: 8$ $ 9$ * Redistributions of source code must retain the above copyright notice, this 10$ list of conditions and the following disclaimer. 11$ $ 12$ * Redistributions in binary form must reproduce the above copyright notice, 13$ this list of conditions and the following disclaimer in the documentation 14$ and/or other materials provided with the distribution. 15$ $ 16$ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17$ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18$ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19$ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 20$ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21$ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22$ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23$ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24$ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25$ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26$ POSSIBILITY OF SUCH DAMAGE. 27$ $ 28 29$quote " 30 31$ Miscellaneous messages. 32$set 1 33 341 "Function:" 35 36$ Error types. 37$set 2 38 391 "Math error:" 402 "Parse error:" 413 "Runtime error:" 424 "Fatal error:" 435 "Warning:" 44 45$ Math errors. 46$set 3 47 481 "negative number" 492 "non-integer number" 503 "overflow: number does not fit into a hardware number" 514 "divide by 0" 52 53$ Parse errors. 54$set 4 55 561 "end of file" 572 "invalid character '%c'" 583 "string end cannot be found" 594 "comment end cannot be found" 605 "invalid token" 616 "invalid expression" 627 "empty expression" 638 "invalid print statement" 649 "invalid function definition" 6510 "invalid assignment: left side must be scale, ibase, obase, seed, last, var, or array element" 6611 "no auto variable found" 6712 "function parameter or auto \"%s%s\" already exists" 6813 "block end cannot be found" 6914 "cannot return a value from void function: %s()" 7015 "var cannot be a reference: %s" 7116 "POSIX does not allow names longer than 1 character: %s" 7217 "POSIX does not allow '#' script comments" 7318 "POSIX does not allow the following keyword: %s" 7419 "POSIX does not allow a period ('.') as a shortcut for the last result" 7520 "POSIX requires parentheses around return expressions" 7621 "POSIX does not allow the following operator: %s" 7722 "POSIX does not allow comparison operators outside if statements or loops" 7823 "POSIX requires 0 or 1 comparison operators per condition" 7924 "POSIX requires all 3 parts of a for loop to be non-empty" 8025 "POSIX does not allow exponential notation" 8126 "POSIX does not allow array references as function parameters" 8227 "POSIX requires the left brace be on the same line as the function header" 83 84$ Runtime errors. 85$set 5 86 871 "invalid ibase: must be [%lu, %lu]" 882 "invalid obase: must be [%lu, %lu]" 893 "invalid scale: must be [%lu, %lu]" 904 "invalid read() expression" 915 "recursive read() call" 926 "variable or array element is the wrong type" 937 "stack has too few elements" 948 "wrong number of parameters; need %zu, have %zu" 959 "undefined function: %s()" 9610 "cannot use a void value in an expression" 97 98$ Fatal errors. 99$set 6 100 1011 "memory allocation failed" 1022 "I/O error" 1033 "cannot open file: %s" 1044 "file is not ASCII: %s" 1055 "path is a directory: %s" 1066 "invalid command-line option: \"%s\"" 1077 "option requires an argument: '%c' (\"%s\")" 1088 "option takes no arguments: '%c' (\"%s\")" 109