export extern for core

Define an extern and export it from a module.

Signature

> export extern {flags} (def_name) (params)

Parameters

  • def_name: definition name
  • params: parameters

Input/output types:

input output
nothing nothing

Examples

Export the signature for an external command

> export extern echo [text: string]

Notes

This command is a parser keyword. For details, check: https://irsh.vercel.app/book/thinking_in_rsh.html