Top 1,000 Features Creators Resources Blog Explore Download
GitHub icon

Slope

< >

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

Source code:
git clone https://git.rawtext.club/slope-lang/slope
#248on PLDB 3Years Old


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 Resources Blog Explore Download
GitHub icon

View source

- Build the next great programming language ยท About ยท Acknowledgements ยท Extensions ยท Day 624 ยท feedback@pldb.io