I would like to add a syntax highlight for simplified byteman (proper byteman grammar is immensely hard)
Simplified byteman grammar is literally java grammar + few more keywords, eg:
RULE
CLASS
METHOD
AFTER INVOKE
BIND
IF
DO
ENDRULE
AT EXCEPTION EXIT
AT ENTRY
AT INVOKE println
IF true
AT EXIT
AT EXCEPTION EXIT
AFTER WRITE $d2
AT READ $2 ALL
AT SYNCHRONIZE 1
AFTER SYNCHRONIZE 2
traceln(
traceStack(
flag(
If it goes well with $ support:
$2
$.*
$^...
Thy should be by different colour.
I had already tried to look to the grammar declaratins in rsyntax area, but was confused, if it is actually possible to jsut extend java grammar, and found to conclusion that it is not posisble. if it is possible, can you pont me to how?
If it is not possible, what woud you recomend to do. And if you can, point me to places in code where I should start. Except university, my IT life was moreover grammars free:(
Hello!
I would like to add a syntax highlight for simplified byteman (proper byteman grammar is immensely hard) Simplified byteman grammar is literally java grammar + few more keywords, eg:
If it goes well with
$
support:Thy should be by different colour.
I had already tried to look to the grammar declaratins in rsyntax area, but was confused, if it is actually possible to jsut extend java grammar, and found to conclusion that it is not posisble. if it is possible, can you pont me to how?
If it is not possible, what woud you recomend to do. And if you can, point me to places in code where I should start. Except university, my IT life was moreover grammars free:(
https://byteman.jboss.org/docs.html https://github.com/judovana/JrdBytemanExamples/tree/master/btmn