seiyria / collabs

A language to collaborate between multiple others; generate enums and interfaces using this DSL and port them to other languages with a CLI command.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collabs

A tool to create cross-language enums and interfaces.

Usage

npx collabs

CLI Flags

  • --file - the .collab file to parse
  • --outFile - the destination file to output
  • --format - the format of the file to parse as (supports ts only at this time)

Supported Features

  • Interface data types: string, char, boolean, integer, float, any, Record<x, y>, Array<x>
  • Enum types: Bare enums, numerical enums, string enums
  • Turn .collab files into any* language

* only the languages in formats/ are supported at this time

Examples

Check out the examples directory to see some simple examples.

About

A language to collaborate between multiple others; generate enums and interfaces using this DSL and port them to other languages with a CLI command.


Languages

Language:Nearley 57.4%Language:JavaScript 42.6%