About the IMPORT instruction
まだ誰も着手していません。
評価
調査の方向性
The payload names no files, so start by finding the pre-parser and the IMPORT handling in the C# source. Read how the main file's configuration is applied to the merged text. Done would mean imported files are pre-parsed recursively with their own configuration, syntax errors report the correct file and line, and the grammar reads are merged before the main parse. The issue is a design proposal with no maintainer decision, so confirm the approach in the thread before writing code.
索引モデルが issue の本文から書いたものです。
説明
What we have now
The pre-parsing applies on the main file. For each IMPORT read, it deletes that import and add the imported content to the start of the new string to parse.
The problem
Now if there is an error in one file, the parsing will still trigger an error, but it will neither give the file it occurs nor the correct line of the error. Moreover, different files may need different configurations. As for now, only the last line is taken into account for configuration, and that may lead to unexpected errors when parsing.
Idea for solution
Here is what I propose:
- When the pre-parser reads the main file, each time a IMPORT instruction is encountered
- The pre-parsing is also applied on the imported file, with a new empty configuration context so that the main configuration and the imported file configuration does not conflict. (Each time a IMPORT instruction is read, pre-parsing must recursively applied to the imported file).
- The syntax parsing is applied to the imported file.
- Once the pre-parsing is finished, all imported grammar reads are merged together
- The parsing can normally apply on the main file normally
- 主要言語
- C#
- スター
- 0
- フォーク
- 0
- 平均マージ
- 3日 4時間
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Natvs/Nt.SyntaxParser のほかの issue
-
New light syntaxオープンgood first issue usability
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Natvs/Nt.SyntaxParser#45 ·
-
good first issue usability
難易度 3/5 半日 初心者へのやさしさ 73/100
Natvs/Nt.SyntaxParser#44 ·
-
documentation
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
Natvs/Nt.SyntaxParser#35 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
Natvs/Nt.SyntaxParser#28 ·
-
enhancement good first issue
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Natvs/Nt.SyntaxParser#15 ·
Natvs/Nt.SyntaxParser の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
a-corriger documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
christian-raj/S-Aloha#312 ·
-
ready-for-agent tech-debt
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
DigiBanks99/menlo#640 ·
メンテナーはふだん 1 日以内に返信
-
ci
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
OpenTabletDriver/OpenTabletDriver#5283 ·
メンテナーはふだん 3 日以内に返信