home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
p2demo21.exe
/
PEL
/
LANGUAGE.PEL
< prev
next >
Wrap
Text File
|
1995-04-21
|
11KB
|
241 lines
# $Header: P:\source\wmacros\language.pev 1.5 09 Mar 1995 13:07:08 WALKER $
##############################################################################
#
# Compuware Corporation
# 31440 Northwestern Highway
# Farmington Hills, Michigan 48334-2564
#
# This source code listing contains information that is
# proprietary to Compuware Corporation and may not be copied
# duplicated, translated, transmitted, stored, retrieved
# or in any manner or by any method conveyed or disclosed
# to a third party or parties without express written
# permission from Compuware Corporation.
#
#
##############################################################################
#### $Workfile: language.pel $:
##############################################################################
##############################################################################
##
## WARNING: The following section contains PREDITOR/2 generated code.
## Changing code in this section will produce unpredictable
## results.
##
################################################################################
################################################################################
global function load_user_extensions()
{
add_extension(".ada", "ada");
add_extension(".asm", "assembler");
add_extension(".awk", "awk");
add_extension(".bas", "basic");
add_extension(".bat", "batch");
add_extension(".c", "c");
add_extension(".cbl", "cobol");
add_extension(".cmd", "rexx");
add_extension(".cob", "cobol");
add_extension(".cpp", "c");
add_extension(".cxx", "c");
add_extension(".dlg", "rc");
add_extension(".f", "fortran");
add_extension(".for", "fortran");
add_extension(".h", "c");
add_extension(".hpp", "c");
add_extension(".hxx", "c");
add_extension(".ipf", "helpfile");
add_extension(".mak", "makefile");
add_extension(".pas", "pascal");
add_extension(".pel", "pel");
add_extension(".rc", "rc");
add_extension(".txt", "text");
} # End extensions
global function load_user_compilers()
{
add_compiler("Advantage ADA", "ada $<", "ada", 0, "", 0, 0, 0, 0, 0);
add_compiler("Borland C++", "bcc -c $<", "turboc", 0, "", 0, 0, 0, 0, 0);
add_compiler("COBOL Compiler", "cobol $<", "other", 0, "", 0, 0, 0, 0, 0);
add_compiler("Clipper 5.0", "clipper $< /s /w /m", "clipper5", 0, "", 0, 0, 0, 0, 0);
add_compiler("Clipper Summer '87", "clipper $< -m -s", "clipper87", 0, "", 0, 0, 0, 0, 0);
add_compiler("Clipper Summer '87 (preprocessor)", "pre $<", "clipper87", 0, "", 0, 0, 0, 0, 0);
add_compiler("DOS Command Interpeter", "command.com /c $<", "none", 1, "", 1, 0, 0, 0, 512);
add_compiler("FORCE dBase Compiler", "force $<", "force", 0, "", 0, 0, 0, 0, 0);
add_compiler("IBM CSet++", "icc $<", "generic", 0, "", 0, 0, 0, 0, 0);
add_compiler("INTERSOLV PVCS Builder", "build -f $<", "build", 0, "", 0, 0, 0, 0, 0);
add_compiler("INTERSOLV PolyMake", "make -f $<", "polymake", 0, "", 0, 0, 0, 0, 0);
add_compiler("Lahey FORTRAN 77", "f77l $<", "lahey", 0, "", 0, 0, 0, 0, 0);
add_compiler("Microsoft C", "cl -c $<", "c", 0, "", 0, 0, 0, 0, 0);
add_compiler("Microsoft Masm", "masm $<,nul,asm.err;", "asm", 0, "", 0, 0, 0, 0, 0);
add_compiler("Microsoft Quick BASIC", "qb $<", "bas", 0, "", 0, 0, 0, 0, 0);
add_compiler("NMake", "nmake -f $<", "nmake", 0, "", 0, 0, 0, 0, 0);
add_compiler("PEL Compiler", "d:\\rel21\\bbin\\wpel -o $a -adis $<", "pel", 0, "", 0, 0, 0, 0, 0);
add_compiler("REXX Interpeter", "cmd.exe /c $<", "none", 1, "", 1, 0, 0, 0, 0);
add_compiler("Resource Compiler", "rc -r $<", "generic", 0, "", 0, 0, 0, 0, 0);
add_compiler("Thompson Tools Awk Compiler", "awkc $<", "none", 0, "", 0, 0, 0, 0, 0);
add_compiler("Turbo C", "tcc -c -w $<", "turboc", 0, "", 0, 0, 0, 0, 0);
add_compiler("Turbo C++", "tcc -c $<", "turboc", 0, "", 0, 0, 0, 0, 0);
add_compiler("Turbo Pascal", "tpc $<", "generic", 0, "", 0, 0, 0, 0, 0);
add_compiler("Watcom C++", "wcc386 -c $<", "watcom", 0, "", 0, 0, 0, 0, 0);
add_compiler("Zortech C", "ztc -c -r $<", "zortech", 0, "", 0, 0, 0, 0, 0);
add_compiler("Zortech C++", "ztc -c -cpp -r $<", "zortech", 0, "", 0, 0, 0, 0, 0);
add_compiler("[None]", "$<", "none", 0, "", 0, 0, 0, 0, 0);
} # End compilers
global function load_user_types()
{
add_type("Default", "", "", "9 17", "1 77", "{ } [ ] ( ) /* */ %if %endif #if #endif #ifdef #endif", "", 0, 0, 1, "", 0, 0);
add_type("ada", "Advantage ADA", "c", "5 9", "1 77", "begin end (* *) { }", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("assembler", "Microsoft Masm", "asm", "5 9", "1 77", "{ } [ ] ( ) /* */ #if #endif #ifdef #endif", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("awk", "Thompson Tools Awk Compiler", "awk", "4 7", "1 77", "{ } [ ] ( )", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("basic", "IBM Basic", "basic", "9 17", "1 77", "", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("batch", "DOS Command Interpeter", "[None]", "4 7", "1 77", "{ } [ ] ( ) /* */ %if %endif #if #endif #ifdef #endif", "", 8192, 0, 1, "", 0, 0);
add_type("c", "Borland C++", "c", "4 7", "1 77", "{ } [ ] ( ) /* */ #if #endif #ifdef #endif", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("cobol", "Microfocus 3.2", "cobol", "8 12", "1 80", "IF END-IF PERFORM END-PERFORM ADD END-ADD DIVIDE END-DIVIDE MULTIPLY END-MULTIPLY SEARCH END-SEARCH SUBTRACT END-SUBTRACT", "\\", 8192, 0, 1, "()[];:='", 1, 0);
add_type("fortran", "Lahey FORTRAN 77", "text", "9 17", "1 77", "", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("helpfile", "IPFC", "text", "9 17", "1 77", "", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("makefile", "NMake", "text", "9 17", "1 77", "( ) %if %endif", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("pascal", "Turbo Pascal", "pascal", "5 9", "1 77", "begin end (* *) { }", "\\", 0, 0, 1, "()[];:,='", 0, 0);
add_type("pel", "PEL Compiler", "awk", "4 7", "1 77", "{ } [ ] ( )", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("rc", "Resource Compiler", "", "4 7", "1 77", "{ } [ ] ( ) /* */ %if %endif #if #endif #ifdef #endif begin end", "", 8192, 0, 1, "", 0, 0);
add_type("rexx", "REXX Interpeter", "rexx", "4 7", "1 77", "{ } [ ] ( ) /* */ %if %endif #if #endif #ifdef #endif", "\\", 8192, 0, 1, ".();,=':", 1, 0);
add_type("text", "", "text", "9 17", "1 77", "", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("vdiff_ref", "", "text", "4 7", "1 77", "", "\\", 0, 0, 1, "()[];:,='", 1, 0);
add_type("vdiff_target", "", "text", "4 7", "1 77", "", "\\", 0, 0, 1, "()[];:,='", 1, 0);
} # End types
global function load_user_awk_syntax()
{
optional_function("load_factory_awk_syntax");
} # End awk_syntax
global function load_user_c_syntax()
{
optional_function("load_factory_c_syntax");
} # End c_syntax
global function load_user_cobol_syntax()
{
optional_function("load_factory_cobol_syntax");
} # End cobol_syntax
global function load_user_pascal_syntax()
{
optional_function("load_factory_pascal_syntax");
} # End pascal_syntax
global function load_user_pel_syntax()
{
optional_function("load_factory_pel_syntax");
} # End pel_syntax
global function load_user_rc_syntax()
{
optional_function("load_factory_rc_syntax");
} # End rc_syntax
global function load_user_rexx_syntax()
{
optional_function("load_factory_rexx_syntax");
} # End rexx_syntax
global function load_user_vdiff_ref_syntax()
{
optional_function("load_factory_vdiff_ref_syntax");
} # End vdiff_ref_syntax
global function load_user_vdiff_target_syntax()
{
optional_function("load_factory_vdiff_target_syntax");
} # End vdiff_target_syntax
global function load_user_syntax_colors()
{
# Foreground colors for syntax highlighting
syntax_colors_fg[65537] = 0xffffff;
syntax_colors_fg[65538] = 0x838383;
syntax_colors_fg[131073] = 0x0000ff;
syntax_colors_fg[131074] = 0x0000aa;
syntax_colors_fg[196609] = 0xff0000;
syntax_colors_fg[196610] = 0x800000;
syntax_colors_fg[262145] = 0xff00ff;
syntax_colors_fg[262146] = 0x8000aa;
syntax_colors_fg[327681] = 0x00ff00;
syntax_colors_fg[327682] = 0x009200;
syntax_colors_fg[393217] = 0x00ffff;
syntax_colors_fg[393218] = 0x0092aa;
syntax_colors_fg[458753] = 0xffff00;
syntax_colors_fg[458754] = 0x809200;
syntax_colors_fg[524289] = 0x000000;
syntax_colors_fg[524290] = 0xc9c9c9;
# Background colors for syntax highlighting
syntax_colors_bg[65537] = 0xffffff;
syntax_colors_bg[65538] = 0x838383;
syntax_colors_bg[131073] = 0x0000ff;
syntax_colors_bg[131074] = 0x0000aa;
syntax_colors_bg[196609] = 0xff0000;
syntax_colors_bg[196610] = 0x800000;
syntax_colors_bg[262145] = 0xff00ff;
syntax_colors_bg[262146] = 0x8000aa;
syntax_colors_bg[327681] = 0x00ff00;
syntax_colors_bg[327682] = 0x009200;
syntax_colors_bg[393217] = 0x00ffff;
syntax_colors_bg[393218] = 0x0092aa;
syntax_colors_bg[458753] = 0xffff00;
syntax_colors_bg[458754] = 0x809200;
syntax_colors_bg[524289] = 0x000000;
syntax_colors_bg[524290] = 0xc9c9c9;
} # End syntax_colors
global function load_user_styles()
{
defined_styles[16777215][-1] = create_syntax_style(0xffffff, -1);
defined_styles[255][-1] = create_syntax_style(0xff, -1);
defined_styles[16711680][-1] = create_syntax_style(0xff0000, -1);
defined_styles[16711935][-1] = create_syntax_style(0xff00ff, -1);
defined_styles[65280][-1] = create_syntax_style(0xff00, -1);
defined_styles[65535][-1] = create_syntax_style(0xffff, -1);
defined_styles[16776960][-1] = create_syntax_style(0xffff00, -1);
defined_styles[0][-1] = create_syntax_style(0x0, -1);
defined_styles[8618883][-1] = create_syntax_style(0x838383, -1);
defined_styles[170][-1] = create_syntax_style(0xaa, -1);
defined_styles[8388608][-1] = create_syntax_style(0x800000, -1);
defined_styles[8388778][-1] = create_syntax_style(0x8000aa, -1);
defined_styles[37376][-1] = create_syntax_style(0x9200, -1);
defined_styles[37546][-1] = create_syntax_style(0x92aa, -1);
defined_styles[8425984][-1] = create_syntax_style(0x809200, -1);
defined_styles[13224393][-1] = create_syntax_style(0xc9c9c9, -1);
defined_styles[16777215][10824234] = create_syntax_style(0xffffff, 0xa52a2a);
defined_styles[16777215][2763429] = create_syntax_style(0xffffff, 0x2a2aa5);
defined_styles[2763429][2763429] = create_syntax_style(0x2a2aa5, 0x2a2aa5);
} # End styles
################################################################################
################################################################################
##
## WARNING: The previous section contains PREDITOR/2 generated code.
## Changing code in this section will produce unpredictable
## results.
##
################################################################################
################################################################################