GithubHelp home page GithubHelp logo

2000jedi / yudi-s-programming-language Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 576 KB

A new programming language that enforces memory safety.

License: GNU General Public License v3.0

Makefile 0.49% C++ 94.29% TeX 5.21%
programming-language interpreter

yudi-s-programming-language's Introduction

Yudi's Programming Language

Yudi's Programming Language (YCPL) is a new programming language that enforces memory safety and type safety. The specification of the language is defined under spec/specs.pdf. This branch builds an interpreter that interprets the program.

TODO-List

This project is still under development and not all function modules defined in specification coherce with the implementation. Below is the todo-list of the project.

  • Compiler front-end.
  • Language interpreter implementation.
  • Memory management.
  • Library. (ip)
  • Operation overloading.
  • Rework error message format (err.cpp / err.hpp)
  • Rework generics.
  • Testing
    • Class.
    • Tagged Union.

File and Directory Layout

  • spec/: Directory that includes specification.
    • specs.tex: Source LaTeX code for specification.
    • specs.pdf: Compiled readable speicification file.
  • src/: Directory that includes source code.
  • sample/: Directory that includes sample programs.
    • factorial.yc: factorial from 1 to 10.
    • cast.yc: conversion between basic types.
    • copy_move.yc: illustration difference between copy and move.
    • union.yc: demo of tagged union.
  • input.yc: Sample program used for debugging.
  • Makefile
  • LICENSE
  • README.md: Documentation.

Installation

The interpreter requires any form of a C++ compiler. It has been tested under WSL, Arch Linux and Mac OS.

To compile the project

make

To test all sample programs under sample/

make test

yudi-s-programming-language's People

Contributors

2000jedi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

yudi-s-programming-language's Issues

Support for type casts.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

string escape failure

Describe the bug
Escape characters do not work as expected.

To Reproduce
print("hello, world\nhello, world!");

Expected behavior

hello, world
hello, world!

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.