Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Slope

< >

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

#309on PLDB 3Years Old
Download source code:
git clone https://git.rawtext.club/slope-lang/slope

A small s-expression based programming language


Example from the web:
; hello world (define greeting "Hello") (display greeting ", world!\n")
Slope Keywords
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
Conditionals โœ“
(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`
canUseQuestionMarksAsPartOfIdentifier โœ“
(define yes? #t)
Namespaces โœ“
(ns-create 'hello-world)
(ns-define
  'hello-world
  'print
  (lambda ()
    (display "hello world!\n")))
(hello-world::print)
hasBuiltInRegex โœ“
(regex-match? `[0-9]+` "Hello 12345")
(regex-replace `Hello, (\w+)!importOnly
Slope - Programming language
Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

View source

- Build the next great programming language ยท About ยท Resources ยท Acknowledgements ยท Part of the World Wide Scroll