Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom literals #4

Open
jmatsushita opened this issue Aug 10, 2023 · 0 comments
Open

Custom literals #4

jmatsushita opened this issue Aug 10, 2023 · 0 comments

Comments

@jmatsushita
Copy link

Hi there,

Thanks for the great project! I bumped into it while looking for implementations of algebraic property graphs 👍

I'm wondering if I'm correct that custom literals aren't parsed in the tasl DSL yet? This example from the docs https://tasl.io/docs/literals doesn't parse:

namespace ex http://example.com/
namespace xsd http://www.w3.org/2001/XMLSchema#

literal myCustomLiteralName ex:hello/world
literal integer xsd:integer

class ex:Thing {
  ex:foo -> myCustomLiteralName
  ex:bar -> integer
}

I get the following error:

  SyntaxError {
    message: 'No parse at 82',
  }

  › Parse.advance (file://node_modules/@lezer/lr/dist/index.js:1101:23)
  › LRParser.parse (file://node_modules/@lezer/common/dist/index.js:1272:30)
  › parseSchema (file://src/schema/parseSchema.ts:10:17)
  › file://test/schema.test.ts:104:17

Also maybe you can answer this question underlay/underlay.org#129 about underlay and tasl?

Thanks!

Jun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant