Giter Site home page Giter Site logo

pseudon-perl's Introduction

#pseudon-perl

a perl to pseudon translator

Pseudon is a dynamic language intertranspiler: it can translate a subset of each supported language to a any of the others.

This perl to pseudon translator would add automatic support for

  • perl to ruby
  • perl to javascript
  • perl to python
  • perl to any other pseudon-supported language

pseudon compiler

maturity

prototypical stage, perl can't be really parsed in a normal humanish way, so we'll need some asumptions/magic about the subset we'll be using

supported subset

pseudon supports a very clear and somehow limited subset of a language:

  • basic types: integer, float, string, boolean, nil
  • lists
  • dicts
  • standard library methods for the basic types
  • classes (only as collection of instance methods, no static/metaprogramming supported)

why

Supporting full-blown Perl to Ruby auto translation is hard. However often we need to

  • translate/support some algorithms in different languages
  • translate/support some text/data processing tool in different languages
  • generate code for the same task/algorithm in different languages

Often that code is(or can be) expressed in very similar way, with similar constructs and basic types and data structures. On that level a lot of dynamic languages are very similar and the only real difference is syntax and methods api. That's a feasible task for automatic translation and actually the existance of pseudon is to fullfill a need of another existing project.

You can almost think of it in a "~json-for-algorithms" way: we express our code with standard basic types, collections and simple classes and we can translate to a common format(pseudon code) and using it as a middle ground between each supported language

pseudon-perl's People

Contributors

alehander92 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.