Add KUKA Robot Language (KRL) Syntax to Prism
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 1.4k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 3
Description
Language
Kuka Robot Language (KRL) is used to control KUKA robots. It is similar to Pascal.
Additional resources
There is already an implementation for Visual Studio Code:
KUKA KRL (KUKA Robot Language) support in Visual Studio Code
An this is the syntax file from the same repo:
https://github.com/d4nuu8/language-kuka-krl/blob/master/syntaxes/krl.tmLanguage.json
An official reference guide can be found here:
Reference Guide v4.1
Example code
&ACCESS RVP
&REL 87
&COMMENT HANDLER on external automatic
DEF CELL ( )
;FOLD INIT
DECL CHAR DMY[3]
DMY[]="---"
;ENDFOLD (INIT)
IF ($T1) OR ($T2) THEN
HALT
ENDIF
; function call
Gripper_Test()
; interrupt declaration
INTERRUPT DECL 4 WHEN $FLAG[1] DO IRQ4_Homing( )
CONTINUE
SWITCH(MatrizeNum)
CASE 1
Offset=4
CASE 3
Offset=8
DEFAULT
LOOP
HALT
ENDLOOP
ENDSWITCH
LOOP
; Comment
ENDLOOP
END
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked KUKA KRL VS Code implementation and its syntaxes/krl.tmLanguage.json, then compare them with the KRL reference guide and example code in this issue. Done means Prism can highlight the shown KRL constructs, including directives, declarations, comments, control flow, and function calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100