Package Editra :: Package src :: Package syntax :: Module asm
[hide private]

Module asm

source code

FILE: asm.py AUTHOR: Cody Precord


To Do: Complete Keywords/Registers

Author: Cody Precord <cprecord@editra.org>

Functions [hide private]
 
Keywords(lang_id=0)
Returns List of Keyword Specifications
source code
 
SyntaxSpec(lang_id=0)
Syntax Specifications
source code
 
Properties(lang_id=0)
Returns a list of Extra Properties to set
source code
 
CommentPattern(lang_id=0)
Returns a list of characters used to comment a block of code
source code
 
KeywordString()
Returns the specified Keyword String
source code
Variables [hide private]
  __svnid__ = '$Id: asm.py 52852 2008-03-27 13:45:40Z CJP $'
  __revision__ = '$Revision: 52852 $'
  ASM_CPU_INST = (0, '.long .ascii .asciz .byte .double .float ....
  ASM_MATH_INST = (1, '')
  ASM_REGISTER = (2, '')
  ASM_DIRECTIVES = (3, '.include .macro .endm')
  SYNTAX_ITEMS = [('STC_ASM_DEFAULT', 'default_style'), ('STC_AS...
Function Details [hide private]

Keywords(lang_id=0)

source code 

Returns List of Keyword Specifications

Parameters:
  • lang_id - used to select specific subset of keywords

SyntaxSpec(lang_id=0)

source code 

Syntax Specifications

Parameters:
  • lang_id - used for selecting a specific subset of syntax specs

Properties(lang_id=0)

source code 

Returns a list of Extra Properties to set

Parameters:
  • lang_id - used to select a specific set of properties

CommentPattern(lang_id=0)

source code 

Returns a list of characters used to comment a block of code

Parameters:
  • lang_id - used to select a specific subset of comment pattern(s)

KeywordString()

source code 

Returns the specified Keyword String

Note: not used by most modules


Variables Details [hide private]

ASM_CPU_INST

Value:
(0,
 '.long .ascii .asciz .byte .double .float .hword .int .octa .quad .sh\
ort .single .space .string .word')

SYNTAX_ITEMS

Value:
[('STC_ASM_DEFAULT', 'default_style'),
 ('STC_ASM_CHARACTER', 'char_style'),
 ('STC_ASM_COMMENT', 'comment_style'),
 ('STC_ASM_COMMENTBLOCK', 'comment_style'),
 ('STC_ASM_CPUINSTRUCTION', 'keyword_style'),
 ('STC_ASM_DIRECTIVE', 'keyword3_style'),
 ('STC_ASM_DIRECTIVEOPERAND', 'default_style'),
 ('STC_ASM_EXTINSTRUCTION', 'default_style'),
...