How yanncebron/m68kplugin works
This is a JetBrains IDE plugin for Motorola 68000 assembly. The main workflow is opening an assembly file, tokenizing and parsing it into PSI, then using that language model for editing and IDE assistance. The graph also preserves README-documented completion, navigation, analysis, refactoring, and documentation capabilities, plus the Amiga hardware-documentation extension. Some capability implementations are not sampled, so their links are documented or left unverified rather than inferred from names alone.
Main entry points: M68kParser.java Assembly parser · M68kMnemonicsParser.java Instruction grammar · M68kDirectivesParser.java Directive grammar · M68kTypes.java PSI element types
Components 23
Language model
- Assembly file type
api/plugin-api/src/main/java/com/yanncebron/m68kplugin/lang/M68kFileType.java - Lexer
gen/com/yanncebron/m68kplugin/lexer/_M68kLexer.java - Token types
src/com/yanncebron/m68kplugin/lang/psi/M68kTokenTypes.java - Assembly parser
gen/com/yanncebron/m68kplugin/lang/M68kParser.java - Instruction grammar
gen/com/yanncebron/m68kplugin/lang/M68kMnemonicsParser.java - Directive grammar
gen/com/yanncebron/m68kplugin/lang/M68kDirectivesParser.java - Expression grammar
gen/com/yanncebron/m68kplugin/lang/M68kExpressionParser.java - PSI element types
gen/com/yanncebron/m68kplugin/lang/psi/M68kTypes.java - PSI contracts
api/psi-api/src/main/java/com/yanncebron/m68kplugin/lang/psi/M68kPsiElement.java - Addressing modes
src/com/yanncebron/m68kplugin/lang/psi/M68kAdm.java - Mnemonic registry
src/com/yanncebron/m68kplugin/lang/psi/M68kMnemonicRegistry.java
IDE assistance
- Code completion
src/com/yanncebron/m68kplugin - Navigation and search
src/com/yanncebron/m68kplugin/resolve - Code analysis
src/com/yanncebron/m68kplugin/lang - Label refactoring
src/com/yanncebron/m68kplugin/resolve - Structure view
src/com/yanncebron/m68kplugin/structureview/M68kRootStructureViewTreeElement.java - Editor actions
src/com/yanncebron/m68kplugin/editor
Documentation
- Documentation browser
api/plugin-api/src/main/java/com/yanncebron/m68kplugin/browser/M68kBrowserPaneBase.java - Documentation links
src/com/yanncebron/m68kplugin/browser/M68kBrowserDocumentationLinkHandler.java - Amiga register docs
platforms/amiga/src/main/java/com/yanncebron/m68kplugin/amiga/hardware/M68kAmigaHardwareRegister.java
Target platforms
- Target detection
src/com/yanncebron/m68kplugin/settings/ide/M68kTargetPlatformDetectionProjectActivity.kt - Amiga integration
platforms/amiga/src/main/java/com/yanncebron/m68kplugin/amiga
Other components
- Assembly developer
Connections 23
- Assembly developer → Assembly file type: opens source
README.md - Assembly file type → Lexer: provides language input
- Lexer → Token types: emits tokens
gen/com/yanncebron/m68kplugin/lexer/_M68kLexer.java - Assembly parser → Token types: consumes tokens
gen/com/yanncebron/m68kplugin/lang/M68kParser.java - Assembly parser → Instruction grammar: dispatches instructions
gen/com/yanncebron/m68kplugin/lang/M68kParser.java - Assembly parser → Directive grammar: dispatches directives
gen/com/yanncebron/m68kplugin/lang/M68kParser.java - Assembly parser → Expression grammar: parses expressions
gen/com/yanncebron/m68kplugin/lang/M68kParser.java - Directive grammar → Expression grammar: parses expressions
gen/com/yanncebron/m68kplugin/lang/M68kDirectivesParser.java - Instruction grammar → PSI element types: creates PSI
gen/com/yanncebron/m68kplugin/lang/M68kMnemonicsParser.java - Directive grammar → PSI element types: creates PSI
gen/com/yanncebron/m68kplugin/lang/M68kDirectivesParser.java - PSI element types → PSI contracts: implements contracts
- Assembly developer → Code completion: requests completion
README.md - Assembly developer → Navigation and search: navigates symbols
README.md - Assembly developer → Code analysis: receives inspections
README.md - Assembly developer → Label refactoring: renames labels
README.md - Assembly developer → Structure view: browses structure
- Assembly developer → Editor actions: edits source
- Assembly developer → Documentation browser: requests documentation
README.md - Documentation links → Documentation browser: routes links
src/com/yanncebron/m68kplugin/browser/M68kBrowserDocumentationLinkHandler.java - Amiga integration → Amiga register docs: provides register data
- Target detection → Amiga integration: selects target
- Instruction grammar → Mnemonic registry: uses mnemonic data
- Editor actions → Addressing modes: uses operand model
src/com/yanncebron/m68kplugin/editor/M68kMoveLeftRightHandler.java