Git Product home page Git Product logo

izuzanak / uclang Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 3.0 4.56 MB

Interpreted, dynamically typed, object-oriented programming language

License: GNU General Public License v2.0

Shell 0.05% Objective-C 10.01% C++ 85.43% C 1.19% Python 1.01% Batchfile 0.01% Makefile 0.01% C# 0.02% Prolog 0.01% Java 1.77% Rust 0.13% CMake 0.35%
language interpreter object-oriented scripting-language inheritance exceptions embedded-systems module-system linux c-plus-plus

uclang's Introduction

uclang - programming language

Build Status CI Total alerts Language grade: C/C++

Interpreted, dynamically typed, object-oriented programming language.

Language features

  • Language syntax is derived from C/C++ programming languages.
    • Some syntax is derived from Java programming language.
  • Strong object oriented approach.
    • Everything is an object.
    • No global functions at all.
    • Almost all actions are performed by execution of methods.
  • Support for inheritance.
  • Support for exceptions.
  • Support for native threads, no GIL (Global Interpreter Lock).
  • Module system designed for straightforward creation of binary modules in C/C++.
    • A language built in data types are implemented as binary module.
  • Lightweight interpreter, deployable on embedded devices.

Documentation

Documentation of uclang components is located in uclang/doc. Short introduction to language syntax and features can be found in uclang/doc/intro.md.

Language modules

A set of modules was created in order to use uclang in production. Implementation of these modules is located in uclang/mods

Some of implemented modules are:

base, sys, inotify, time, lang, pack, parser, math, psql, sqlite, http, websocket, curl, ftp, ssh2, gcrypt, iconv, jit, fann, av, ao, mpg, portaudio, gstreamer, gtk, image, glut, glew, gl, ftgl, vg, imxegl, snmp, node, containers, algorithms, binbits, graph, json, xml, python, v8, lua, mono, perl, ruby, prolog, zlib, zip, snappy, fuse, android

Examples

Some examples are introduced in uclang/doc/intro.md.

Building interpreter

The container generator cont is needed for compilation of the interpreter.

Linux compilation

Enter build directory build.

cd build

Process cmake source.

cmake ..

Build uclang.

make -j$(nproc)

Linux example scripts

Example scripts can be executed by following commands:

cd uclang/uclang_build
export LD_LIBRARY_PATH=$(pwd)
./uclang scripts/hello.ucl
...

uclang's People

Contributors

izuzanak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

uclang's Issues

Missing import 'regex' in 'uclang/demos/imx_sdma/assembler.ucl'

Testing this project and trying to execute 'uclang/demos/imx_sdma/main.ucl' I'm getting this error message:

uclang main.ucl
 ---------------------------------------- 
1. ERROR: in file: "./assembler.ucl" on line: 57
      [ new Regex("^ *$"), 0x0000, m_ignore_cb ],

Class name Regex cannot be resolved
 ---------------------------------------- 

And after adding 'import regex;' to 'uclang/demos/imx_sdma/assembler.ucl' no error reported.

Another issue I'm having when trying to execute 'uclang/examples/*' directly it doesn't due to not having the 'export UCLANG_MODS_PATH=' set and it doesn't seem that we can us import with relative paths.

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.