Giter VIP home page Giter VIP logo

dogescript's Introduction

dogescript

dogescript NPM version

(aka when Zach went insane)

This is an implementation of the best new compile-to-JS language, dogescript. Wow.

And yes, I am very aware I went about a very, er, non-conventional, way of parsing a language, and is probably riddled with bugs and edge-cases. However, this is dogescript, so anything goes!

    wow
         such dogescript
     very compiled
                  next-generation
       npm wow

Installation

npm install -g dogescript

Usage

Command Line

dogescript without a file launches a REPL.

dogescript location/to/dogescript.djs pipes the result to stdout. Use a command like dogescript dogescript.djs > compiled.js to save to a file.

Options:

  • --beautify - Runs the code through a beautifier.
  • --true-doge - Implements "true doge" mode, which splits lines by 3 spaces, instead of by newlines. This stays behind a flag until the spacing it exports is identical to non-true-doge mode.

Javascript

dogescript(file, beauty, trueDoge)

  • file - A string of Dogescript.
  • beauty - A boolean, set to true if you want the output to be ran through a beautifier.
  • trueDoge - A boolean, set to true if you want to enable true-doge mode.

Language documentation

Projects using dogescript

dogescript's People

Contributors

alehander92 avatar bartvds avatar benatkin avatar dogejs avatar eerwitt avatar englercj avatar es128 avatar groundwater avatar joedailey avatar ngscheurich avatar remixz avatar rtoal avatar strathausen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.