Skip to content
/ lang Public template
forked from samth/xlang

*lang* is a language of combinators and numeric constants - reproduced with permission from xlang by @samth

License

Notifications You must be signed in to change notification settings

racket-templates/lang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#lang template

A working example of a #lang language you can use as a starting point for creating your own #lang language.

How To Install

  1. Set your PATH environment variable so you can use raco and other Racket command line functions.
  2. either look for from-template in the DrRacket menu File|Package Manager, or run the raco command:
raco pkg install from-template
raco new lang <destination-dir>

If you omit <destination-dir>, the command will add copy the template to a folder called lang in the current folder.

You can also click Use this template to copy the repository.

How to use

This is working example that you can change to suit your needs.

See https://github.com/racket/racket/wiki/Creating-Languages for resources on creating languages.

Description

This template is derived from https://github.com/samth/xlang :

A language of combinators and numeric constants, implemented in Racket.

Examples:

#lang xlang
(S K I X)
#lang xlang
(K 1 2)

To Install: `raco pkg install xlang`

To learn about combinators: http://en.wikipedia.org/wiki/Combinatory_logic

About

*lang* is a language of combinators and numeric constants - reproduced with permission from xlang by @samth

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Racket 100.0%