home *** CD-ROM | disk | FTP | other *** search
- /*
- This file describes some classes for Personal Agent 1.0
- */
-
- These are comment lines.
- Note as no special introducer is needed...
-
- Comments may be anywhere except into a class definition (class ... end) or
- an action definition (action ... end).
-
- The keywords "class", "action" and "end" act as delimiters; to avoid confusions
- (since "class" often appears in comments), they MUST be in upper case; "class",
- "action" and "end" in uppercase are RESERVED words.
- Every other element of the language (patterns included) is case-insensitive.
-
-
- ############################
- # Some typical ASCII docs
- ############################
-
- CLASS ASCII HAS NAME #?.doc
- OR NAME #?.txt
- OR NAME #?.man
- OR NAME #?.rea
- OR NAME #?read#?me#?
- END
-
-
- #############################
- # Various packers' archives
- #############################
-
- CLASS LZH HAS NAME #?.lzh OR NAME #?.lha OR "-lh" AT 2 AND "-" AT 6 END
-
- CLASS ZIP HAS NAME #?.zip OR "PK" AT 0 END
-
- CLASS ZOO HAS NAME #?.zoo OR "ZOO" AT 0 AND "Archive" AT 9 END
-
- CLASS ARC HAS NAME #?.arc END
-
- CLASS DSM HAS NAME #?.dsm OR "DSM" AT 0 END
-
-
- ####################
- # Some IFF format
- ####################
-
- CLASS ILBM HAS "FORM" AT 0 AND "ILBM" AT 8 END
-
- CLASS C100 HAS "FORM" AT 0 AND "C100" AT 8 END
-
-
- ###################
- # Tracker modules
- ###################
-
- CLASS TRACKER HAS NAME mod.#? OR "st-" at 20 and "@" at 45 END
- CLASS MED HAS "MED" at 0 END
-
-
- #################################################################
- # Amiga executable files (includes .devices, .library & .fonts)
- #################################################################
-
- CLASS Exe HAS $00 $00 $03 $f3 at 0 OR name #?.exe END
-
-
- ###############
- # .info files
- ###############
-
- CLASS .info HAS NAME #?.info OR $E3 $10 $00 $01 AT 0 END
-
-
- ###################
- # Source Programs
- ###################
-
- CLASS CREXX has "/*" at 0 END
-
- CLASS C has "#include" at 0
- OR 10 "#include" at 0
- OR 10 10 "#include" at 0
- OR name #?.c
- OR name #?.h
- END
-
-
- #######################################
- # Some minor, specialized file format
- #######################################
-
- CLASS TDLOG HAS "TrapDoor" AT 22 END
- CLASS VLT_SCRIPT has name #?.scp END
-
-
-
-
- ##########################################################
- # Actions for the above defined classes, in my own system
- ##########################################################
- #
- #ACTION VIEW ILBM IS dh0:usr/misc/m "%s" END
- #ACTION VIEW ASCII IS dh0:usr/etc/view80 "%s" END
- #ACTION VIEW C IS lc:lse <NIL: >NIL: "%s" END
- #ACTION VIEW CREXX IS lc:lse <NIL: >NIL: "%s" END
- #ACTION VIEW Exe IS %s ? END
- #ACTION VIEW TRACKER IS echo "%s" is a SoundTracker module END
- #ACTION VIEW .info IS echo "%s" is a .info file END
- #ACTION VIEW C100 IS c1-text:C1-Text "%s" END
- #ACTION VIEW LZH IS dh0:usr/archivers/lz v "%s" END
- #ACTION VIEW ZIP IS dh0:usr/archivers/unzip -v "%s" END
- #ACTION VIEW ZOO IS dh0:usr/archivers/zoo v "%s" END
- #ACTION VIEW ARC IS dh0:usr/archivers/arc v "%s" END
- #ACTION VIEW TDLOG IS dh0:usr/user/dme "%s" END
- #ACTION VIEW VLT_SCRIPT IS dh0:usr/user/dme "%s" END
- #
- #ACTION VIEW DEFAULT IS dh0:usr/etc/view80 "%s" END
- #
-
- ##################################################
- # Actions for the above defined classes, generic
- ##################################################
-
- ACTION VIEW ILBM IS display "%s" END
- ACTION VIEW ASCII IS more "%s" END
- ACTION VIEW C IS memacs "%s" END
- ACTION VIEW CREXX IS memacs "%s" END
- ACTION VIEW Exe IS %s ? END
- ACTION VIEW TRACKER IS echo "%s" is a SoundTracker module END
- ACTION VIEW MED IS echo "%s" is a MED module END
- ACTION VIEW .info IS echo "%s" is a .info file END
- ACTION VIEW C100 IS echo "%s" is a C1-Text document END
- ACTION VIEW LZH IS lz v "%s" END
- ACTION VIEW ZIP IS unzip -v "%s" END
- ACTION VIEW ZOO IS zoo v "%s" END
- ACTION VIEW ARC IS arc v "%s" END
- ACTION VIEW TDLOG IS ed "%s" END
- ACTION VIEW VLT_SCRIPT IS ed "%s" END
-
-
- ##################
- # Default action
- ##################
-
- ACTION VIEW DEFAULT IS more "%s" END
-
-