Giter Site home page Giter Site logo

Comments (4)

gbasso avatar gbasso commented on May 23, 2024

I mean agent in the package name is detected as a keyword and not as a package folder.

from sarl.

srodriguez avatar srodriguez commented on May 23, 2024

That is actually normal. It is the same thing as in java, you cannot use a keyword in as package name, i.e. the following will produce an error

package io.sarl.test.class;

public class Test {
//...
}

I will however improve the error message.

PS: Thanks for all the bugs, questions and suggestions. It is a great help.

from sarl.

gbasso avatar gbasso commented on May 23, 2024

I just find a solution in SARL language.

I create a java class in the package fr.utbm.set.smartgrid.sarl.skill with no java keyword.
The auto-import tool add thisimport fr.utbm.set.smartgrid.sarl.^skill.ComputeSkillFactory and I have no error with this.

from sarl.

gallandarakhneorg avatar gallandarakhneorg commented on May 23, 2024

I confirm: the grammar from Xtext enables to put the character ^ to ensure that a text will never be understood as a keyword when writting an ID.

from sarl.

Related Issues (20)

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.