Starting a new branch
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- Une demi-journée
- Accessibilité débutants
- 73/100
Piste de recherche
Start by reading the existing StartBranch(string token, IState<T> state) overload and the StringTransition API it should accept. Then add the overload that takes a transition, mirroring how existing branch-starting code threads state through. Add tests covering a transition with a pattern such as test|Test|TEST, and update the documentation that mentions StartBranch. Done means the new overload is usable as shown, with tests and docs updated.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
What we can do now
To start a branch, we use the method StartBranch(string token, IState<T> state)
The problem
If we want to start a branch from different tokens, we need to use this method again and again for similar tokens
For example
parser.StartBranch("test", state);
parser.StartBranch("Test", state);
parser.StartBranch("TEST", state);
The solution
Surcharche the method to also accept a transition. Since StringTransition can handle a regular expression, the above example can become
parser.StartBranch(new StringTransition(state).AddPattern("test|Test|TEST"))
Like always, don't forget to add tests and documentation
- Langage dominant
- C#
- Étoiles
- 0
- Forks
- 0
- Merge moyen
- 3 j 4 h
- PR mergées (30 j)
- 5
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Natvs/Nt.SyntaxParser
-
New light syntaxOuvertegood first issue usability
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
Natvs/Nt.SyntaxParser#45 ·
-
documentation
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
Natvs/Nt.SyntaxParser#35 ·
-
About the IMPORT instructionOuvertebug invalid
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
Natvs/Nt.SyntaxParser#29 ·
-
More pre-parsing instructionsOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
Natvs/Nt.SyntaxParser#28 ·
-
Comments in grammar filesOuverteenhancement good first issue
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
Natvs/Nt.SyntaxParser#15 ·
Toutes les issues de Natvs/Nt.SyntaxParser
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
a-corriger documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
christian-raj/S-Aloha#312 ·
-
ready-for-agent tech-debt
Difficulté 1/5 1-3 heures Accessibilité débutants 85/100
DigiBanks99/menlo#640 ·
Les mainteneurs répondent en général sous 1 jour
-
ci
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
OpenTabletDriver/OpenTabletDriver#5283 ·
Les mainteneurs répondent en général sous 3 jours