Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Cross References in a dynamic language
Cross References in a dynamic language [message #1253524] Sat, 22 February 2014 11:04 Go to next message
Iikka Hauhio is currently offline Iikka HauhioFriend
Messages: 2
Registered: February 2014
Junior Member
I'm using Xtext to create an IDE for the Sve programming language.

Sve is a dynamic programming language, where variables can be declared runtime.

For example:

local a = 2 # normal variable declaration
$$["a"] = 2 # dynamic variable declaration


So the IDE can't know all variables before executing the code.

Currently I have a proposal provider, so content assistant and autocomplete etc. works, but I'd like to have features like rename refactoring. Is it possible to have cross-references for known variables?
Re: Cross References in a dynamic language [message #1255547 is a reply to message #1253524] Mon, 24 February 2014 15:06 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Yes, it's possible.
Do you have a specific question?

Am 22/02/14 20:12, schrieb Iikka Hauhio:
> I'm using Xtext to create an IDE for the Sve programming language.
>
> Sve is a dynamic programming language, where variables can be declared
> runtime.
>
> For example:
>
>
> local a = 2 # normal variable declaration
> $$["a"] = 2 # dynamic variable declaration
>
>
> So the IDE can't know all variables before executing the code.
>
> Currently I have a proposal provider, so content assistant and
> autocomplete etc. works, but I'd like to have features like rename
> refactoring. Is it possible to have cross-references for known variables?


--
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Re: Cross References in a dynamic language [message #1255598 is a reply to message #1255547] Mon, 24 February 2014 16:10 Go to previous message
Iikka Hauhio is currently offline Iikka HauhioFriend
Messages: 2
Registered: February 2014
Junior Member
I want that known variables have rename refactoring, etc, and unknown variables are ignored.
Previous Topic:aggregator pom
Next Topic:Strange left recursive rules
Goto Forum:
  


Current Time: Fri Mar 29 15:09:31 GMT 2024

Powered by FUDForum. Page generated in 0.05354 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top