kestrel-lang icon indicating copy to clipboard operation
kestrel-lang copied to clipboard

In-STIX pattern variable auto complete does not work

Open subbyte opened this issue 3 years ago • 2 comments

Describe the bug If one tries to auto-complete a variable name in STIX pattern for a parameterized pattern, it does not work.

Details of the bug This is limited to the STIX pattern parser we current use. Need to upgrade parser.

subbyte avatar Feb 01 '22 21:02 subbyte

Can't we import the STIX grammar into the Kestrel grammar? I think that way we could make autocomplete work.

pcoccoli avatar Feb 11 '22 15:02 pcoccoli

We can. Some tests I played with a few days ago: https://github.com/opencybersecurityalliance/kestrel-lang/issues/16 This is a try to import paramstix.lark from firepit and it works. Once we do that, another task is to reassemble the STIX pattern from parsed tree when giving it to stix-shifter. I will work with you to see if we can hand the parsed tree to firepit to simplify the process when I work on the parser milestone.

subbyte avatar Feb 11 '22 20:02 subbyte