Introduce a set of tool to improve FAST importer development#46
Open
jecisc wants to merge 63 commits intoEvref-BL:mainfrom
Open
Introduce a set of tool to improve FAST importer development#46jecisc wants to merge 63 commits intoEvref-BL:mainfrom
jecisc wants to merge 63 commits intoEvref-BL:mainfrom
Conversation
… some code cleaning
A bug was fixed in SingularizePluralize and #addGenericChildren: got renamed automatically into #addGenericChild:.
…elds In the TSSymbolExplorerPresenter, next to the field name, I now dispaly the min and max number of children I found in the node. This allows to know easily multiple things: - If the node is optional - If the node always has the same value - If the node has un undefined number of values
For now I just ignore those files.
This visitor allows one to look for a node matching a pattern and inspect it displaying its source code and its source code highlighted in the full source of the file. Example of usage: I wanted to find in python an except clause with multiple elements in the value field: ```st folder := '/Users/cyril/testPython/cpython-main/' asFileReference. TSNodeFinderVisitor language: TSLanguage python extensions: #( 'py' ) selection: [ :node | node type = #except_clause and: [ node collectFieldNameOfNamedChild at: #value ifPresent: [ :nodes | nodes isCollection ] ifAbsent: [ false ] ] ] buildOn: folder. ```
Because having two classes of the same name would produce an error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds a bunch of tools to simplify the creation of FAST importers such has:
TSFASTCustomizableVisitorto specialize the FAST model. Fixes [New feature] Add a customizable FAST importer #38TSFASTVisitorto add hooks to specialize the FAST model generatedBecause having two classes of the same name would produce an error
I also added two pages of documentation. One about utilities and one about FAST model importer.
I might do some more cleaning, but this PR should be mergeable