Lhogho  0.0.028
 All Data Structures Files Functions Variables Typedefs Macros Pages
translate_en.h
Go to the documentation of this file.
1 //
2 // Project: Lhogho
3 // File: translate_en.h
4 //
5 // Copyright (C) 2011-2012 P.Boytchev
6 //
7 // Revision history:
8 // 2011-02-11 - file created from old translate.h
9 // 2011-10-07 - Removed TR_WARNING_UNSUPPORTED_COMPILER, because GCC 4+ is now supported
10 // 2011-10-14 - Added RUNMACRO
11 // 2011-12-02 - Added TR_ERROR_OUT_OF_MEM
12 // 2011-12-26 - Error messages taken from string, stored to array of atoms
13 // 2012-01-02 - Command-line options are translatable
14 // 2012-01-05 - More synonyms for primitives
15 //
16 //
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 // This program is distributed in the hope that it will be useful,
24 // but WITHOUT ANY WARRANTY; without even the implied warranty of
25 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 // GNU General Public License for more details.
27 //
28 // You should have received a copy of the GNU General Public License
29 // along with this program; if not, write to the Free Software
30 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 //
32 
33 
34 #ifndef LHOGHO_TRANSLATE_EN_H
35 #define LHOGHO_TRANSLATE_EN_H
36 
37 
38 // ===========================================================
41 // ===========================================================
42 #define TR_OPTIONS TEXT( \
43  " |-h| |--help| || |print this help message| "\
44  " |-x| |--executable| || |create executable file| "\
45  " |-xc| |--executable-compiler| || |embed Lhogho in executable file| "\
46  " |-ci| |--case-insensitive| || |switch to case-insentivie mode| "\
47  " |-t| |--traditional| || |switch to traditional mode| "\
48  " |-Za| |--Zassembler| || |dump assembler code| "\
49  " |-Zm| |--Zmemory| || |dump memory statistics| "\
50  " |-Zmad| |--Zmemory-all-details| || |dump detailed memory statistics| "\
51  " |-Zrt| |--Zrun-time| || |dump runtime evaluations| "\
52  " |-Zt| |--Ztree| || |dump abstract syntax trees| "\
53  " |-Zv| |--Zvariables| || |dump variables| "\
54  " |-Zuv| |--Zuser-variables| || |dump user variables| "\
55  " " )
56 
57 #define TR_HELP_TEXTS TEXT( \
58  " |LHOGHO - The LOGO Compiler| "\
59  " |Usage:\n lhogho [option] [option] ... filename [arguments]\n\nOptions:\n| "\
60  " |\nAdvanced options:| "\
61  " |\nUnsupported options:| "\
62  " " )
63 
64 
65 // ===========================================================
68 // ===========================================================
69 #define TR_PRIMITIVES TEXT( \
70  " false true to learn end toplevel system error" \
71  " * / + - = < > <= >= <> all? and any? or not " \
72  " first || butfirst bf firsts || butfirsts bfs" \
73  " last || butlast bl item || " \
74  " word list sentence se firstput fput lastput lput " \
75  " word? wordp list? listp number? numberp empty? emptyp " \
76  " equal? equalp notequal? notequalp before? beforep " \
77  " less? lessp greater? greaterp lessequal? lessequalp " \
78  " greaterequal? greaterequalp member? memberp || || count || " \
79  " char ascii lowercase || uppercase || member parse runparse " \
80  " sum difference minus product quotient remainder " \
81  " int round sqrt power exp log10 ln abs " \
82  " pi sin radsin cos radcos arctan radarctan " \
83  " iseq rseq random || rerandom || pick " \
84  " lshift ashift bitand bitor bitxor bitnot " \
85  " print pr ? show type || form format formattime timezone " \
86  " if ifelse repeat || repcount while do.while until do.until "\
87  " run forever ignore stop || make name output op maybeoutput local thing bye " \
88  " wait tag goto defined? definedp primitive? primitivep " \
89  " name? namep procedure? procedurep " \
90  " for case cond text fulltext define || load commandline " \
91  " printdepthlimit printwidthlimit fullprintp caseignoredp "\
92  " logoplatform logoversion logodialect " \
93  " catch throw error apply " \
94  " test iftrue ift iffalse iff " \
95  " backslashed? backslashedp " \
96  " remdup remove reverse rawascii" \
97  " substring? substringp substring gensym combine quoted" \
98  " runresult runmacro " \
99  " libload libfree " \
100  " blocksize listtoblock blocktolist dataaddr listintoblock funcaddr " \
101  " openfile closefile readblock readinblock writeblock " \
102  " external internal _int3 _stackframe _stackframeatom " \
103  " readchar rc readchars rcs readrawline readword rw readlist rl " \
104  " getenv getenvs eof? eofp " \
105  " currentfolder makefolder erasefolder folder? folderp " \
106  " renamefolder folders changefolder files erasefile erf file? filep " \
107  " renamefile filesize filetimes openread openwrite openappend openupdate " \
108  " setread setwrite reader writer allopen closeall " \
109  " readpos setreadpos writepos setwritepos dribble nodribble " \
110  " " )
111 
112 
113 // ===========================================================
115 // ===========================================================
116 // @{
117 #define TR_ERRORS TEXT( \
118  " |The other counterpart is missing| " /*ERROR_INCOMPLETE_PAIR*/\
119  " |Empty expression| " /*ERROR_EMPTY_EXPRESSION*/\
120  " |Crowded expression| " /*ERROR_CROWDED_EXPRESSION*/\
121  " |Some left inputs are missing| " /*ERROR_MISSING_LEFTS*/\
122  " |Some right inputs are missing| " /*ERROR_MISSING_RIGHTS*/\
123  " |Empty TO..END definition| " /*ERROR_EMPTY_TO_END*/\
124  " |Missing name of a TO..END definition| " /*ERROR_MISSING_NAME*/\
125  " |Duplicate name of input| " /*ERROR_DUPLICATE_INPUT*/\
126  " |Unknown option| " /*ERROR_UNKNOWN_OPTION*/\
127  " |Two or more input source files| " /*ERROR_CROWDED_SOURCES*/\
128  " |OS Error| " /*ERROR_OS_ERROR*/\
129  " |Incompatible TO..END redefinition| " /*ERROR_INCOMPATIBLE_REDEFINITION*/\
130  " |Not a number| " /*ERROR_NOT_A_NUMBER*/\
131  " |Unused value| " /*ERROR_UNUSED_VALUE*/\
132  " |Missing value| " /*ERROR_MISSING_VALUE*/\
133  " |Do not know how to do this| " /*ERROR_DO_NOT_KNOW*/\
134  " |Reference to unknown variable| " /*ERROR_UNKNOWN_VAR*/\
135  " |Boolean expression expected| " /*ERROR_BOOLEAN_EXPECTED*/\
136  " |Not an integer number| " /*ERROR_NOT_AN_INTEGER*/\
137  " |Not a list| " /*ERROR_NOT_A_LIST*/\
138  " |Not a word| " /*ERROR_NOT_A_WORD*/\
139  " |Value not compatible with function requirements| " /*ERROR_INCOMPATIBLE_DATA*/\
140  " |Numeric value is too big| " /*ERROR_TOO_BIG_NUMBER*/\
141  " |Numeric value is too small| " /*ERROR_TOO_SMALL_NUMBER*/\
142  " |Not a variable| " /*ERROR_NOT_A_VAR*/\
143  " |Bye| " /*EXIT_BY_BYE*/\
144  " |Thrown to toplevel| " /*EXIT_BY_THROW_TOPLEVEL*/\
145  " |Thrown to system| " /*EXIT_BY_THROW_SYSTEM*/\
146  " |Thrown by error| " /*EXIT_BY_THROW_ERROR*/\
147  " |Thrown by error| " /*EXIT_BY_THROW_USER_ERROR*/\
148  " |Uncatched throw| " /*EXIT_BY_THROW_TAG*/\
149  " |Uncatched throw| " /*EXIT_BY_THROW_TAG_VALUE*/\
150  " |Not a tag| " /*ERROR_NOT_A_TAG*/\
151  " |Not a user-defined function| " /*ERROR_NOT_A_USER_FUNCTION*/\
152  " |Variable has no value| " /*ERROR_VAR_HAS_NO_VALUE*/\
153  " |Not a command or a function| " /*ERROR_NOT_A_FUNCTION*/\
154  " |Not a list constant| " /*ERROR_NOT_A_LIST_CONST*/\
155  " |Not a word constant| " /*ERROR_NOT_A_WORD_CONST*/\
156  " |Missing initial or final limit| " /*ERROR_MISSING_FOR_LIMITS*/\
157  " |Not a name of a supported type| " /*ERROR_NOT_A_TYPE_NAME*/\
158  " |Not a valid function prototype| " /*ERROR_BAD_PROTOTYPE*/\
159  " |Not a memory block| " /*ERROR_NOT_A_MEM*/\
160  " |Out of memory| " /*ERROR_OUT_OF_MEM*/\
161  " |File is not opened| " /*ERROR_FILE_NOT_OPENED*/\
162  " |Not a block or a block definition list| " /*ERROR_NOT_BLOCK_OR_DEF*/\
163  " " )
164 // @}
165 
166 #endif //LHOGHO_TRANSLATE_EN_H

[ HOME | INDEX | ATOMS | VARS | REFERENCE ]
Lhogho Developer's Documentation
Wed Jul 10 2013