Starting a new branch

Aperta
#44 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
73/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
compilers, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue usability

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

Lingua principale
C#
Stelle
0
Fork
0
Merge medio
3g 4h
PR unite (30g)
5

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Natvs/Nt.SyntaxParser

Tutte le issue di Natvs/Nt.SyntaxParser

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.