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

jEdit example source code file (assembly-ags.xml)

This example jEdit source code file (assembly-ags.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

eol_span, function, function, keyword1, keyword1, keyword3, mode, operator, rules, seq, seq, true, type, type

The jEdit assembly-ags.xml source code

<?xml version="1.0"?>

<!DOCTYPE MODE SYSTEM "xmode.dtd">

<!-- Apollo Guidance Computer (AGC) Assembly 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">
		<EOL_SPAN TYPE="COMMENT2">##
		<EOL_SPAN TYPE="COMMENT1">#

		<MARK_PREVIOUS TYPE="LABEL" MATCH_TYPE="OPERATOR"
			AT_LINE_START="TRUE">	</MARK_PREVIOUS>

		<!-- Binary Operators -->
		<SEQ TYPE="OPERATOR">+
		<SEQ TYPE="OPERATOR">-

		<KEYWORDS>
			<!-- Directives -->
			<FUNCTION>ORG 
			<FUNCTION>BSS 
			<FUNCTION>BES 
			<FUNCTION>SYN 
			<FUNCTION>EQU 
			<FUNCTION>DEFINE 
			<FUNCTION>DEC 
			<FUNCTION>OCT 
			<FUNCTION>END

			<!-- Registers -->
			<KEYWORD3>A
			<KEYWORD3>Q
			<KEYWORD3>INDEX

			<!-- Opcodes -->
			<KEYWORD1>ABS
			<KEYWORD1>ADD 
			<KEYWORD1>ADZ 
			<KEYWORD1>ALS 
			<KEYWORD1>AXT 
			<KEYWORD1>CLA 
			<KEYWORD1>CLZ 
			<KEYWORD1>COM 
			<KEYWORD1>DLY 
			<KEYWORD1>DVP 
			<KEYWORD1>INP 
			<KEYWORD1>LDQ 
			<KEYWORD1>LLS 
			<KEYWORD1>LRS 
			<KEYWORD1>MPR 
			<KEYWORD1>MPY 
			<KEYWORD1>MPZ 
			<KEYWORD1>OUT
			<KEYWORD1>STO 
			<KEYWORD1>STQ 
			<KEYWORD1>SUB 
			<KEYWORD1>SUZ 
			<KEYWORD1>TIX 
			<KEYWORD1>TMI 
			<KEYWORD1>TOV 
			<KEYWORD1>TRA 
			<KEYWORD1>TSQ 

		</KEYWORDS>
	</RULES>
</MODE>

Other jEdit examples (source code examples)

Here is a short list of links related to this jEdit assembly-ags.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.