vaclav / mpscs Goto Github PK
View Code? Open in Web Editor NEWMPS C# implementation
License: Apache License 2.0
MPS C# implementation
License: Apache License 2.0
I have followed the tutorial_program exactly, but when previewing the generated text, it does not produce a cs file. Instead I get a tab titled TextGen, containing the following:
Model processed:r:eeedaff5-feee-4227-9a4c-f40fbda9be3c(CsSampleSln.MyModel) Context node:r:eeedaff5-feee-4227-9a4c-f40fbda9be3c(CsSampleSln.MyModel)/958873517462047080 Text generation completed successfully None of generated text units reference context node
Hi,
I have a suggestion.
When you are using classes that use generics, it is difficult to know which is the correct option to choose in the auto complete.
As such I suggest a substitute menu to customize the auto complete.
I have already an example on branch https://github.com/hilario-cunha/mpscs/tree/GenericMemberReference_Autocomplete (it's easier to show than explaining)
You can see the example in the GenericClass model.
In that version, on the autocomplete appears the name of the class plus the types used in the definition.
What you think of the suggestion?
Hi,
Thanks for your work on MPS.
I wonder how much resources (engineering time/people) it took you to add support for C#? I am still new to language workbenchs but I am interested in adding support for Erlang/Elixir - myself. Is that even feasible?
If I understand well that would enable us to prettyprint valid Erlang/Elixir programs directly from Jetbrains MPS Generators?
Is there any alternative solutions right now for working with Erlang/Elixir from MPS-based DSL?
With kind regards,
Nicolas
EDIT: also something I don't understand yet, is how do you make sure the generated C# code is valid?
For Java it is easy as MPS itself is written in Java but what about external languages? How do you make sure you implemented the grammar of the language correctly?
Also, how do you add support for non-standard librairies of C#?
Hi,
Thank you for this work. But when I tried it, I noticed there is no scope support in the language.
Is that something that is worked on or planned? Or am I missing something?
Hi,
I haven't been able to set the visibility of the get/set part of a property.
Having the following property
public string P1
{
get;
set;
}
I'm being unable to transform that in
public string P1
{
get;
protected set;
}
I tried also to fix the possible problem directly in the CsBaseLanguage but it was failing when i tried to do the regeneration of the language.
There is a way to do this?
If not, i will try again to solve the problem in the CsBaseLanguage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.