Comments (6)
The value
keyword doesn't convey a lot of meaning to me (unlike terminal
or enum
) because it is quite generic. I'd use a keyword like datatype
. WDYT, @spoenemann?
Also, the we commonly use assignments with a value
feature. Declaring value
as a keyword, would force the user to escape it everytime.
from langium.
Right, we should be careful introducing new keywords because of name clashes with user-defined properties (I prefer the term "property" over "feature"; the latter is quite EMF-specific).
I though about value
because of the ValueConverter
service. IMO the term "datatype" is not fully clear as well. Is primitive
more descriptive?
from langium.
I like primitive
. Is the corresponding rule type PrimitiveRule
as well?
from langium.
👍
Should it be PrimitiveConverter
then to make clear that it applies to terminal rules as well as primitive rules?
from langium.
Sure, since it basically only converts string
(and maybe number
) values right? A ValueConverter
in my eyes could be used to transform the whole AST.
from langium.
In Xtext you can define value converters that create complex types like LocalDate
. I'm not sure whether we want to support that.
from langium.
Related Issues (20)
- Completion provider (parser) doesn't respect optional prefix of same shape than subsequent mandatory parts
- `createDefaultCoreModule` isn't compatible with `ExampleGeneratedModule` (`langium` v3.0.0) HOT 2
- `DefaultConfigurationProvider.getConfiguration` stalls in tests HOT 4
- Nodes that consume no text are undefined HOT 5
- Completely optional parser rules should be marked as errors HOT 5
- 3.0: Multi Language cannot handle file renames
- 'vscode' in 'dependencies' instead of 'devDependencies' HOT 2
- extension now can launch ,but still report error,a little confused,although has no influence
- Railroad diagrams could optionally exclude unused imported rules
- how can i pass this validation message to outer
- CI/CLI: Generator errors in linting job do not cause pipeline to fail
- Diagnostics are stuck on deleted files
- Watch configuration provider for updates
- Update vitest to fix VS Code integration
- JsonSerializer and References HOT 2
- Generate from language file is endless HOT 1
- Support the VSCode extension on the web HOT 6
- Split generated yeoman project into npm workspace HOT 4
- Support notebook document messages
- Incorrect array type inference
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langium.