Coder Social home page Coder Social logo

azer0s / hadeslang Goto Github PK

View Code? Open in Web Editor NEW
36.0 9.0 2.0 1.94 MB

The Hades Programming Language

Home Page: https://hadeslang.gitbook.io/doc

License: MIT License

C# 99.82% Makefile 0.18%
interpreter csharp language dotnet-core programming-language scripting-language wip

hadeslang's Issues

Implement directives

%alias int num% 
%import test.hades%

import - pastes file
alias - replaces string

Implement force through

Var values can be forced through the interpreter like so

a as word closed = 'out:b'
b as word closed = 'Hello world'
#a

Output will be Hello world

Can´t access variables from file in function

c as word closed = 'Hello world'
fib:[1,1]
func fib[num a, num b]
	out:c
	asLongAs[true]
		out:a
		out:b

		a = $a + $b
		b = $a + $b

		case[$a bigger 10000]
		put a
		endCase
	endAsLongAs
endfunc

Throws an exception because of out:c

Implement base features

  • uload
  • rand
  • dtype
  • Sqrt, Sin, Cos, Tan, Integ, factorial, modulo
  • exists
  • load
  • string concat
  • eraseVars
  • type
  • out
  • in
  • Replace vars with values
  • Custom functions

Improve alias

  • Longer aliases
  • Sort alias cache
  • Longer base expressions

Add debugger

Enable with:
debug:1

Use:

HadesDebugger.EventManager.OnInterrupted += (c) => 
{
    return true;
};

Change Wiki to new language norms

  • Added new formal criteria
  • Added new technical description
  • Reworked layout
  • Added new language features
  • Explain new features
    • Custom library location
    • Better expression parsing thanks to mXparser

Add recursion

Idea:
Add counter for every function Dictionary<string(funcitonname), int (how many times it was accessed)>
Add number of counter to the access -> $"{FAccess}@{group[1]}{counter[group[1]]}"

Solution:
Guid for each function call

iterateFor with word arrays bug

iterateFor[word a in $fi->readAllLines:['fibrec.hades']]
out:a
endIterateFor

Prints exception because lines are assigned to variable incorrectly

Implement tasking

task as t
    a as num closed = 0
    asLongAs [true]
        out:'Hello world'+$a
    endAsLongAs
endTask

startTask:t
endTask:t
  • Implement core functionality
  • Ensure thread safety

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.