Code Monkey home page Code Monkey logo

myperl's Introduction

For Impatient

cd cmp
gcc -g -o myperl myperl.c -lm -lpcre -lreadline
./myperl [script.pl]

-- to run script:
./myperl script.pl

-- to run REPL:
./myperl

For Curious

Get and install [MyDef](https://github.com/hzhou/MyDef)
Get and install [output_c](https://github.com/hzhou/output_c)
-- There are some doc in those repositories, but feel free to ask

mydef_make    # creates config and Makefile, answer out/ and C (output folder and language module)
make          # compiles from .def sources to out/myperl.c
-- create a simple out/Makefile
mydef_make    # to integrate sub makefile

-- read def sources [start with main.def, macros/parse_frame.def, ... follow the trail]
-- make changes then make and run:
make all && out/myperl

Plan

The goal for the main branch is to implement a subset of Perl, which will run all my useful Perl code. My useful Perl codes span over a decade, so aiming at this goal, I hope it will result in a very useful Perl alternative.

The main branch will focus on readability. While it does emphasize on correctness and speed, it does not try to entirely emulate Perl 5. It will only include necessary features (my say). Generally I will not accept pull requests on this branch (unless the contributor shares my philosophy).

I am open to add branches or forks for production branch(es) that aim for full compatibility of Perl 5, or add any features or fix behaviors, and accept contributions. In fact, it is best if there are developer who want to take ownerships for them.

Status

Toy. Check tests/ folder for currently implemented features.

myperl's People

Contributors

hzhou avatar

Stargazers

Zak B. Elep avatar Denny Harijanto avatar Bernhard Schmalhofer avatar Reini Urban avatar Victor Kaiser-Pendergrast avatar  avatar

Watchers

Shaun Smiley avatar  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.