mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
138 lines
4.5 KiB
C
138 lines
4.5 KiB
C
/*
|
|
* Copyright (c) 2014-2015, Claudio Lapilli and the newRPL Team
|
|
* All rights reserved.
|
|
* This file is released under the 3-clause BSD license.
|
|
* See the file LICENSE.txt that shipped with this distribution.
|
|
*/
|
|
|
|
#include "newrpl.h"
|
|
#include "libraries.h"
|
|
#include "ui.h"
|
|
|
|
#ifdef LANG_ENGLISH
|
|
|
|
// THIS MODULE CONTAINS ALL MESSAGES IN THE GUI
|
|
// TRANSLATED TO A SPECIFIC LANGUAGE
|
|
|
|
// ONLY ONE LANGUAGE MODULE SHOULD BE COMPILED INTO THE ROM
|
|
|
|
|
|
// THIS IS A NULL-TERMINATED TABLE OF MESSAGES
|
|
// MESSAGES CAN BE IN ANY ORDER
|
|
|
|
const MSGLIST const all_messages[]={
|
|
// BASIC UNKNOWN ERROR MESSAGE
|
|
{ 1, "Unknown error" },
|
|
|
|
|
|
// PROGRAM EXECUTION ERRORS
|
|
//{ ERR_PROGRAMEXPECTED, "Expected a program" },
|
|
|
|
// COMPILER/DECOMPILER AND GENERAL CORE ERRORS
|
|
{ ERR_EXITRPLEXCEPTION, "Aborting RPL engine" },
|
|
{ ERR_BKPOINTEXCEPTION, "Breakpoint reached" },
|
|
{ ERR_OUTOFMEMORYEXCEPTION, "Out of memory" },
|
|
{ ERR_USERBREAK, "User BREAK" },
|
|
|
|
{ ERR_SYNTAXERROR, "Syntax error" },
|
|
{ ERR_INVALIDTOKEN, "Invalid word" },
|
|
{ ERR_MALFORMEDOBJECT, "Malformed/corrupted object" },
|
|
{ ERR_NOTALLOWEDINSYMBOLICS, "Not allowed in symbolics" },
|
|
{ ERR_INVALIDOPERATORINSYMBOLIC, "Invalid operator in symbolic" },
|
|
{ ERR_UNRECOGNIZEDOBJECT, "Unrecognized object" },
|
|
{ ERR_INVALIDOPCODE, "Invalid opcode" },
|
|
{ ERR_MISSINGLIBRARY, "Missing library" },
|
|
{ ERR_INTERNALEMPTYSTACK, "Empty data stack (internal)" },
|
|
{ ERR_INTERNALEMPTYRETSTACK, "Emtpy return stack (internal)" },
|
|
{ ERR_BADSTACKINDEX, "Stack index out of bounds" },
|
|
{ ERR_MISPLACEDEND, "Misplaced END statement" },
|
|
{ ERR_ENDWITHOUTSTART, "Block ends without matching start" },
|
|
{ ERR_STARTWITHOUTEND, "Block starts but never ends" },
|
|
{ ERR_MISSINGBRACKET, "Missing bracket" },
|
|
{ ERR_BADARGCOUNT, "Bad argument count" },
|
|
{ ERR_BADARGTYPE, "Bad argument type" },
|
|
|
|
// IDENTIFIERS AND VARIABLES
|
|
{ ERR_IDENTEXPECTED, "Expected an identifier" },
|
|
{ ERR_UNDEFINEDVARIABLE, "Undefined variable" },
|
|
{ ERR_CIRCULARREFERENCE, "Circular reference" },
|
|
|
|
// DIRECTORIES AND VARIABLES
|
|
|
|
// INTEGER NUMBERS
|
|
|
|
// REAL NUMBERS
|
|
|
|
// COMPLEX NUMBERS
|
|
|
|
|
|
// STRINGS
|
|
// { ERR_STRINGEXPECTED, "Expected a string" },
|
|
// { ERR_INVALIDCODEPOINT, "Invalid Unicode code point" },
|
|
|
|
// UNITS
|
|
// { ERR_UNITEXPECTED, "Expected an object with units" },
|
|
// { ERR_INCONSISTENTUNITS, "Inconsistent units" },
|
|
// { ERR_INVALIDUNITDEFINITION, "Invalid unit expression" },
|
|
// { ERR_EXPECTEDREALEXPONENT, "Expected real/fraction exponent" },
|
|
// { ERR_INVALIDUNITNAME, "Invalid unit name" },
|
|
// { ERR_UNDEFINEDUNIT, "Unit not defined" },
|
|
|
|
|
|
// LISTS
|
|
{ ERR_LISTEXPECTED, "Expected a list" },
|
|
{ ERR_INDEXOUTOFBOUNDS, "Index out of bounds" },
|
|
{ ERR_EMPTYLIST, "List is empty" },
|
|
{ ERR_INVALIDLISTSIZE, "Invalid list size" },
|
|
|
|
// SYMBOLICS
|
|
{ ERR_SYMBOLICEXPECTED, "Expected a symbolic" },
|
|
{ ERR_NOTAVALIDRULE, "Not a valid rule" },
|
|
{ ERR_INVALIDUSERDEFINEDFUNCTION, "Invalid user-defined function" },
|
|
|
|
|
|
// MATRIX
|
|
{ ERR_MATRIXEXPECTED, "Expected a matrix" },
|
|
{ ERR_INVALIDDIMENSION, "Invalid dimensions" },
|
|
{ ERR_NOTALLOWEDINMATRIX, "Not allowed in matrix" },
|
|
{ ERR_INCOMPATIBLEDIMENSION, "Incompatible dimensions" },
|
|
{ ERR_MATRIXORREALEXPECTED, "Matrix or number expected" },
|
|
{ ERR_SQUAREMATRIXONLY, "Matrix must be square" },
|
|
{ ERR_VECTOREXPECTED, "Expected a vector" },
|
|
{ ERR_MISPLACEDBRACKETS, "Misplaced brackets" },
|
|
|
|
// FLAGS
|
|
{ ERR_SYSTEMFLAGSINVALID, "System flags corrupt/invalid." },
|
|
{ ERR_INVALIDFLAGNUMBER, "Invalid flag number" },
|
|
{ ERR_INVALIDFLAGNAME, "Invalid flag name" },
|
|
{ ERR_IDENTORINTEGEREXPECTED, "Expected identifier or integer" },
|
|
{ ERR_INVALIDLOCALESTRING, "Invalid Locale string" },
|
|
{ ERR_INVALIDMENUDEFINITION, "Invalid menu definition" },
|
|
{ ERR_EMPTYCLIPBOARD, "Empty clipboard" },
|
|
|
|
// TRANSCENDENTAL FUNCTIONS
|
|
{ ERR_ARGOUTSIDEDOMAIN, "Argument outside domain" },
|
|
|
|
// ADD MORE MESSAGES HERE...
|
|
|
|
// END OF LIST MARKER
|
|
{ 0 , ""}
|
|
|
|
};
|
|
|
|
|
|
// THIS IS THE HELP TEXT FOR ALL COMMANDS PROVIDED IN ROM
|
|
// UP TO 3 LINES OF TEXT, LAYOUT IS HARDWARE DEPENDENT
|
|
// MAKE SURE IT LOOKS GOOD
|
|
|
|
const MSGLIST const all_cmdhelp[]={
|
|
// BASIC UNKNOWN ERROR MESSAGE
|
|
{ CMD_EXITRPL, "EXITRPL: End RPL execution.\nPanic exit, should not be used.\n → [end exec.]"},
|
|
{ CMD_BKPOINT, "BREAKPOINT: Pause RPL execution\nand enter interactive debugger.\n → [pause exec.]"},
|
|
|
|
// ADD MORE MESSAGES HERE...
|
|
|
|
// END OF LIST MARKER
|
|
{ 0 , ""}
|
|
};
|
|
#endif
|