Skip to content

Add Spicy language support#7506

Open
jjrush wants to merge 2 commits intogithub-linguist:mainfrom
jjrush:add-spicy
Open

Add Spicy language support#7506
jjrush wants to merge 2 commits intogithub-linguist:mainfrom
jjrush:add-spicy

Conversation

@jjrush
Copy link

@jjrush jjrush commented Jul 29, 2025

Adding support for Spicy which was originally developed as a research prototype at the International Computer Science Institute with funding from the U.S. National Science Foundation. Since then, Spicy has been rebuilt from the ground up by Corelight, which has contributed the new implementation to the Zeek Project.

Description

Spicy is a parser generator that makes it easy to create robust C++ parsers for network protocols, file formats, and more. Spicy is a bit like a “yacc for protocols”, but it’s much more than that: It’s an all-in-one system enabling developers to write attributed grammars that describe both syntax and semantics of an input format using a single, unified language. Think of Spicy as a domain-specific scripting language for all your parsing needs.

Checklist:

@jjrush jjrush requested a review from a team as a code owner July 29, 2025 20:32
@lildude
Copy link
Member

lildude commented Jul 29, 2025

It’s kinda pointless adding a language without a grammar. The primary reason people want language support is for the syntax highlighting. This language isn’t popular enough for inclusion when you exclude the zeek user so I encourage you to find a grammar in the mean time. VSCode grammars are TextMate compatible and generally work well.

I’d also recommend selecting a colour inline with the language’s official logo or branding.

@jjrush
Copy link
Author

jjrush commented Jul 29, 2025

I mean there is this syntax highlighter available from the lead dev on vscode.

Using an eyedropper tool on the official spicy website shows #ba202500 but the picture they have has a lot of different shades of red.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants