Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon


Slope - Programming language

< >

Slope, aka SLOum's Programming Environment, is a programming language created in 2021 by Sloum.

#535on PLDB 2Years Old 1.0kUsers
0Books 0Papers

A small s-expression based programming language

Example from the web:
; hello world (define greeting "Hello") (display greeting ", world!\n")

Keywords in Slope

define set! lambda cond case if for load load-mod load-mod-file usage macro eval apply and or begin begin0 exists coeval

Language features

Feature Supported Token Example
(if positive? 1 -1)
Zero-based numbering
Switch Statements
(case my-num
  (5 (display "Five!"))
  (0 (display "Zero!"))
  (else (display "Not an option")))
Variadic Functions
(lambda (...) (apply + ...))
Case Sensitivity
File Imports
(load-mod my-module)
(load "examples/test.slo")
Garbage Collection
Strings "
"hello world"
`hello	wold`
(define yes? #t)
(ns-create 'hello-world)
  (lambda ()
    (display "hello world!\n")))
(regex-match? `[0-9]+` "Hello 12345")
(regex-replace `Hello, (\w+)!$` "Hello, world!" "Goodbye, $1!")
; I am a comment
Line Comments ;
; I am a comment
Booleans #t #f
(define open? #t)
Bitwise Operators
(& 0xFF 0x1B)
Prefix Notation
(+ 1 2)
Increment and decrement operators X
Gotos X
Semantic Indentation X
jai.html · slope.html · openlisp.html

View source

- Build the next great programming language · Search · v2023 · Day 208 · Docs · Acknowledgements · Traffic · Traffic Today · Mirrors · GitHub ·