Skip to content

Add a Salam (.salam) language extractor #3860

Description

@BaseMax

Salam (https://github.com/SalamLang/Salam) isn't one of the supported languages, so a Salam codebase gets skipped and never shows up in the graph.

Proposed solution:
Add an extractor for .salam files. Salam has no tree-sitter grammar, so this would be a small token-based scanner (like the COBOL/Apex ones), no new dependency. It should handle both English and Persian keyword spellings, since Salam source can be written in either, and pull out packages, imports, functions, structs/methods, enums, interfaces, impl, switch/match, extern C functions, and layout/components, plus @en/@fa name aliases.

Alternatives considered:
Waiting for an official tree-sitter grammar, but Salam doesn't have one yet and the language's own compiler is small enough that a regex/token scanner covers it well.

Area:
Extraction or language support

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions