New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
1
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc