Giter Club home page Giter Club logo

dl's People

Contributors

studio42gmbh avatar

Stargazers

 avatar  avatar

Watchers

 avatar

dl's Issues

Make the annotation @export invalid for attributes

Currently the annotation export does not throw an exception when used on attributes in the module. This should not be possible

i.e.:

//... in module
int width @export : 640;
int height @export : 400;
//...

Allow to define a default attribute within a type that can then be used within assignments.

Allow to define a default attribute within a type that can then be used within assignments.

Needs to extend DLInstance to have a default attribute, add an annotation @default and extend the assignment handling in parser.

something like:

type H1 extends HTMLElement 
{
	String text @default: "";
}

Div myContent {
	H1 heading : "Welcome"; // <- Creates a new instance of H1 and assigns its text
	P description : "Little text \nwith multiple lines"; // <- Creates a new instance of P and assigns its text
}

Add namespaces to allow scoping for big projects

It could be interesting to add namespaces for scoping types, instances, etc. in modules or across modules)

This is a fundamental extension and might not be in the scope of a Beta release.

something like:

namespace mqrc {

	type A 
	{
		String test;
	}
}

// ...

use mqrc;

A test { test : "aha"; }

unuse mqrc;

// or:

namespace mqrc {

	A test { test : "aha"; }

}

Explore/Experiment with expressions in attribute assignments

This might make working with DL in manual files much more convenient. On the other side it makes the whol DL more complex and error prone ...

// new - shorter and results in "native" boolean - also consider stativ vs. dynamic (with $refs) terms
boolean b : ($state & $state2) | (true != !$state3);
boolean b2 : 7 != 6;
boolean b3 : 7 != $val;
int i : 5 * 3 + 2;
int i2 : 5 * $val2 - 2;

// currently possible with DL - own type tree BoolT, Or, And, Bool, Not, Xor, True, False
BoolT b : Or {
And {
Bool { value : $state; }
Bool { value : $state2; }
}
Xor {
True {}
Not { value : $state3; }
}
};

// Or special Eval with subparser ... might also use ANTLR ...
Eval var : Eval { expr : "$0 != $1", data : $a, $b; };
Eval var : Eval { expr : "7 != $ref"; };

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.