REFACTOR: write the language file of oberon in NUON #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After some private discussion with @nicolaslesquoy, the use of a
nushellscript to generate the language file ofoberonis probably not the best...the former
./scripts/generate-languagewas mandatory to build thelanguage.jsonfile, which is in turn required by./scripts/generate-websiteto generate the pages for the static website of theoberonlanguage 🤔the changes
this PR proposes the following:
nushellscriptgenerate-languageNUONversion of the dataas said in the page above,
language.jsonlanguage.jsonwithsome tests
i've generated the website, from
nushellto leverage the format conversion fromNUONtoJSONof the shell, withand did check the pages with
> qutebrowser website/index.htmlon my machine
the generated pages look the same 👍
i've also conducted a more exhaustive test as follows
which gives me
On branch main Your branch is up to date with 'origin/main'. nothing to commit, working tree cleanwhen the tree is already clean before the test on the
mainbranch ofoberonproject.github.iothe files are indeed the same!!