GithubHelp home page GithubHelp logo

xtext-typesystem's People

xtext-typesystem's Issues

Non-termination in case of cyclic dependencies

When the language allows to specify language constructs which can refer each 
other, it is possible that the type-inference algorithm does not terminate.

E.g., when your language allows to specify mutually recursive functions like

function even(X) { return X == 0 ? true : odd(X - 1) }

function odd(X) { return X == 0 ? false : even(X - 1) }

then for inferencing and checking the type of even the type of odd has to be 
known and vice versa.

With the current implementation, this leads to non-termination / stack overflow.

Original issue reported on code.google.com by [email protected] on 4 Oct 2010 at 9:08

Bug with compareTypeDispatcher?

Hi,

Isn't there a bug with the compareTypeDispatcher?

It is declared with 4 arguments but invoked with only 3…

I noticed that because I cannot get such a compatible method to be called in my 
code…

Thank you

Original issue reported on code.google.com by [email protected] on 11 Mar 2011 at 7:01

useCloneAsType without instantiating a type class

It's more a question than an issue. I just couldn't find some forum.

Instead of a type class I have a certain structure as type (a "type 
description" containing more information than the core type) and I want to 
interpret it myself in typeToString(). When I register it with useCloneAsType() 
the original object is destroyed and a new empty one is created. Of course, 
when I don't register it I get the error "no type calculation rules found for 
EClass TypeDescription".

So my question is: is there a way to keep the original objects returned by 
type() methods?

Thanks and also thanks for this great extension of Xtext!

Michael

Original issue reported on code.google.com by [email protected] on 7 Feb 2011 at 8:35

DefaultTypesystem invokes compareTypeDispatcher with wrong number of arguments

compareTypeDispatcher defines compareTypes with 4 arguments, that is type1, 
type2, checkKind and trace. DefaultTypesystem (rev. 31) only invokes it with 
only 3 arguments, the last one missing. You maybe remove the trace in 
compareTypes, or add the trace to all invocations. For the last solution, I 
have added a patch.

Cheers,

Jens

Original issue reported on code.google.com by [email protected] on 7 Oct 2010 at 3:17

Attachments:

Extension of ContextDependentCustomTypeChecker

Hi Markus,

could you please add the following patch to your type system plug-in?
We need this extension for one of our language constructs during type checking.

The ValidationMessageAcceptor gets per default the index -1 in the check method 
of the CDCTCAdapter class, so there is no possibility to provide an index just 
like for the error or warning methods of the AbstractDeclarativeValidator class 
in Xtext.

Original issue reported on code.google.com by [email protected] on 29 Jun 2011 at 7:13

Attachments:

Provide p2 repository

I'm trying to build my bundles with tycho (http://www.eclipse.org/tycho/) so 
they can be build with maven. I'm getting the following error because of the 
typesystem bundle dependency which could not be resolved.

[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: my.bundle 1.0.0
[ERROR]   Missing requirement: my.bundle 1.0.0 requires 'bundle 
de.itemis.xtext.typesystem 0.0.0' but it could not be found

I'ts very hard to fix this if no p2 repository exists.

Guide how to create a p2 repo: 
http://maksim.sorokin.dk/it/2010/11/26/creating-a-p2-repository-from-features-an
d-plugins/

BTW: Thanks for providing the bundle.

Original issue reported on code.google.com by [email protected] on 12 Dec 2011 at 11:14

Custom dynamic error messages for the ensure... methods

It will be nice to provide an interface which will allow to customize dynamic 
error messages. Currently all the ensure... methods allow to customize only 
static error messages.
Client may want to provide custom error messages depending on the checkable 
context.



Original issue reported on code.google.com by [email protected] on 30 Apr 2013 at 5:13

Explicitly set resource encoding for xpt files

InterpreterGenerator.xpt file has no explicit resource encoding set, so it 
inherits the default encoding (MacRoman for mac). This incorrectly reads the << 
>> characters, which in turn breaks generation.

The fix is simply to explicitly set the Resource Encoding to ISO-8859-1 on the 
InterpreterGenerator.xpt file (right click -> Properties -> Resource). 
Alternatively the resource encoding can be set on the entire project.

Original issue reported on code.google.com by [email protected] on 8 May 2012 at 4:37

Allow explicit setting of metaclass and interpreter package for interpreter generator

Currently the InterpreterGenerator assumes that the metaclass and interpreter 
packages are named according to a fixed pattern relative to the name of the 
grammar. The attached patch allows for the metaclass and interpreter packages 
to be explicitly set in cases (like mine) where the metaclass name does not 
follow the assumed pattern. If these values are not set, then the previous 
default pattern is used.

Original issue reported on code.google.com by [email protected] on 8 May 2012 at 4:59

Attachments:

sources missing

sources were deleted from version control in changeset 
http://code.google.com/a/eclipselabs.org/p/xtext-typesystem/source/detail?r=35

Original issue reported on code.google.com by [email protected] on 26 Oct 2010 at 4:43

Subtypes are not detected

There is a bug in the DefaultTypesystem.java leading to subtypes not being 
properly detected.

In method findSubtypes() a call is made to findSupertypes(). This is a 
copy&paste error and should be a recursive call to findSubtypes().

To reproduce, just define an INTEGER type as a subtype of FLOAT (or similar). 
Any occurrence of an INTEGER variable or constant is rejected in places where 
FLOAT is expected.

This bug is present in 1.3 and all 2.x branches.

Original issue reported on code.google.com by sirhenry3591 on 2 Sep 2013 at 8:12

Add interpreter feature to update site

There is now a feature for the type system plugins (yay!) - can we have a 
feature for the interpreter & interpreter generator as well so that they can be 
installed via the update site?

Original issue reported on code.google.com by [email protected] on 8 May 2012 at 4:48

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.