Socket
Book a DemoInstallSign in
Socket

dream-lang

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dream-lang

dream : yet another js transpiler ---------------------------------------------- it can compile itself but not much to expect from **v0.0.0**

0.0.1
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

dream : yet another js transpiler

it can compile itself but not much to expect from v0.0.0

dream is a small language between clojurescript and coffeescript

def hello(name)
  console.log "hello" name
# or
def hello(name) (console.log "hello" name)
# ------------------------------------------
if true
  (foo)
else
  (bar)
# or
(if true (foo) (bar))
# ------------------------------------------
switch node.value
  "String" (stringNode)
  "Keyword" "Bool"
    js.JSON.stringify node.value
  else
    (callNode)
# or
(switch node.value
  "String" (stringNode)
  ("Keyword" "Bool") (js.JSON.stringify node.value)
  (callNode))
# ------------------------------------------
set! i 0
while (< i node.value.length)
  (foo)
  if (bar)
    break
  += i 1
# ------------------------------------------ 
# comments begins with a # and a space
#!this is
  a block
  comment
# ------------------------------------------
set! node.value (node.value.replace #"\\"g "\\\\")
# or
set! node.value (node.value.replace #re"\\\\"g "\\\\")

there is a gulp plugin here and a vim plugin here

todo

  • test
  • special syntax for require
  • infix operator
  • deconstructor
  • default parameters
  • macros
  • editors tools
  • optional typing
def- foo : String? (arg1 : Number? arg2 : Any) 
  • ...

Keywords

compiler

FAQs

Package last updated on 22 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.