New light syntax

オープン
#45 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
compilers

調査の方向性

Start by finding where the current light ELEMENT: block form is recognised — the grammar/parser classes in this C# library — and the tests that cover the light syntax, since the issue names neither. Reading those will show whether the change belongs in the tokenizer, the block parser, or both, and how optional commas interact with the existing separator rules. Done means both the colon form and the parenthesised form parse, commas are accepted but no longer required, and the existing syntax tests still pass alongside new ones for the parenthesis variant. The open question of whether to keep the old form is worth settling with a maintainer before writing code.

索引モデルが issue の本文から書いたものです。

説明

good first issue usability

What we have now

The light syntax is currently

ELEMENT:
   element1,
   element2,
   ...,
   elementN;

What i propose

Add a parenthesis syntax to conform more to the notion of a block:

ELEMENT (
   element1
   element2
   ...
   elementN
)

Also make it so that comas , are not mandatory anymore.

主要言語
C#
スター
0
フォーク
0
平均マージ
3日 4時間
マージ済み PR(30日)
5

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Natvs/Nt.SyntaxParser のほかの issue

Natvs/Nt.SyntaxParser の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。