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

[SLI-0160] Create public API for the ShExC to Java translation #160

Open
thewillyhuman opened this issue Aug 29, 2020 · 0 comments
Open

Comments

@thewillyhuman
Copy link
Member

Introduction

Java translation is from far the most used feature and users ask for an easy way to instantiate this. We propose to add a custom public API aimed to make the java translation process easy.

Proposed solution

// Creating a new ShExC to Java translator.
ShExLTranslator t = new ToJavaShExLTranslator();

// Events will store the list of warnings or errors produced during the compilation.
// Notice, if any error is produced duringthe compilation the outputDir will be empty.
// Else the outputDir will contain all the generated Java files.
List<CompilationEvent> events = t.translate(inputDir, outputDir);
@weso-bot weso-bot changed the title Create public API for the ShExC to Java translation [SLI-0160] Create public API for the ShExC to Java translation Aug 29, 2020
@thewillyhuman thewillyhuman self-assigned this Aug 29, 2020
@thewillyhuman thewillyhuman removed their assignment Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant