alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

jEdit example source code file (binsource-agc.xml)

This example jEdit source code file (binsource-agc.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - jEdit tags/keywords

at_word_start, digit, digit, eol_span, hash_chars, keywords, mode, rules, seq_regexp, seq_regexp, true, true, type, type

The jEdit binsource-agc.xml source code

<?xml version="1.0"?>

<!DOCTYPE MODE SYSTEM "xmode.dtd">

<!-- Apollo Guidance Computer (AGC) executable binary source mode by Jim Lawton (jim DOT lawton AT gmail DOT com). -->

<MODE>

    <PROPS>
        <PROPERTY NAME="lineComment" VALUE=";" />
    </PROPS>

    <RULES HIGHLIGHT_DIGITS="TRUE" IGNORE_CASE="TRUE">
        <!-- Comments -->
        <EOL_SPAN TYPE="COMMENT2">;

        <!-- Octal numbers (default). -->
        <SEQ_REGEXP HASH_CHARS="+-01234567" AT_WORD_START="TRUE" TYPE="DIGIT">[+-]*[0-7]+[ \t]
        <SEQ_REGEXP HASH_CHARS="+-01234567" AT_WORD_START="TRUE" TYPE="DIGIT">[+-]*[0-7]+$
        <SEQ_REGEXP HASH_CHARS="+-01234567" AT_WORD_START="TRUE" TYPE="DIGIT">[+-]*[0-7]+[,$]

        <KEYWORDS>
            <!-- Directives -->
            <FUNCTION>BANK
        </KEYWORDS>
    </RULES>
</MODE>

Other jEdit examples (source code examples)

Here is a short list of links related to this jEdit binsource-agc.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.