Skip to content
Rajesh Gautam edited this page Jun 12, 2026 · 1 revision

REPL (Interactive Terminal)

Starting the REPL

curlang

You will see:

Curl 1.5.3 (Darwin) on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

Writing Code

Type any Curl statement and press Enter:

>>> pcType{"Hello!"}\
Hello!
>>> var{x, 10}\
>>> pcType{var{x}}\
10

Multi-line Blocks

The prompt changes to ... when inside a block:

>>> if{var{x} > 5, then}-
...     pcType{"big"}\
... --\
big

REPL Commands

Command Description
help Show syntax quick reference
version Show Curl version
license Show license
credits Show credits
copyright Show copyright
exit / quit Leave the REPL

CLI Flags

curlang --version    show version
curlang --help       show help
curlang --license    show license
curlang --credits    show credits

Clone this wiki locally