35 #include "loc/kword.h" 36 #include "loc/ident.h" 38 #include "main/symbol.h" 39 #include "main/operatordefs.h" 40 #include "main/functionalias.h" 43 {
"#HEADLINE#",
"\x1B[1m"},
45 {
"#SYNTAXHIGHLIGHT#",
"\x1B[3m\x1B[32m"},
47 {
"#SYNTAXHIGHLIGHT#",
"\x1B[32m"},
49 {
"#NORMALTEXT#",
"\x1B[0m"},
50 {
"#BOLD#",
"\x1B[1m"},
51 {
"#ITALICS#",
"\x1B[3m"},
52 {
"#UNDERLINE#",
"\x1B[4m"},
53 {
"#COLOR01#",
"\x1B[31m"},
54 {
"#COLOR02#",
"\x1B[32m"},
55 {
"#COLOR03#",
"\x1B[33m"},
115 return const_cast<
char*>(ident);
129 return static_cast<Symbol>(0);
135 for (
unsigned int i = 0; i <
textcount; i++)
180 for (
unsigned int i = 0; i <
helpcount; i++)
212 unsigned int count =
sizeof(
ansiTags) /
sizeof(texttag);
213 char* untagged =
new char[
StrLen(text
) * 2];
219 unsigned int len =
StrLen(untagged
) + 1;
229 return (character ==
'"');
235 if (character ==
'\r')
241 return (character ==
' ' || character ==
'\t');
247 return (character ==
'\r');
249 return (character ==
'\n');
256 for (
unsigned int i = 0; i < count; i++)
char * UntagText(const char *text)
virtual char * Translate(identhelpdef *def)=0
virtual char * Translate(helptextdef *def)=0
virtual bool CharIsBlank(unsigned long character)
Symbol FindKeyword(const char *ident) const
char * FindAlias(const char *ident) const
Character representation of keyword tied with its symbol.
static const texttag ansiTags[]
char * GetHelpText(Symbol symbol)
virtual bool StrIsEqualLoc(const char *s1, const char *s2)=0
virtual bool CharIsQuote(unsigned long character)
static const keyworddef keywords[]
static const texttag emptyTags[]
bool StrIsEqual(const char *s1, const char *s2)
Compare two null terminated strings to each other.
static const identhelpdef identtexts[]
void Untag(char *destination, const char *source, texttag tags[], unsigned int tagcount)
void SetAnsiMode(bool value)
virtual bool CharIsNewLine(unsigned long character)
static const identalias identaliases[]
Character definition of operators.
unsigned int keywordcount
int StrLen(const char *string)
Get the length of a null terminated string.
char * GetHelpText(char *ident)
virtual char * Translate(textdef *def)=0
static const helptextdef helptexts[]
static const operatordef operators[]
Character representation of operators tied with their symbols.
virtual bool CharIsOperator(unsigned long character)
void MemCopy(void *destination, const void *source, unsigned int length)
Copy a block of memory, handling overlap.
static const textdef textdefs[]