Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ #2

Open
geeeeeeeeek opened this issue Dec 6, 2016 · 0 comments
Open

FAQ #2

geeeeeeeeek opened this issue Dec 6, 2016 · 0 comments

Comments

@geeeeeeeeek
Copy link
Member

geeeeeeeeek commented Dec 6, 2016

  1. 读取文件时假设文件行数不超过 1024 行,因此可以直接将 MarkdownTableRecord 数组的长度设为 1024。
  2. score.md 文件只是用于测试。编写时不应该假定读入的文件行数、列数或表格结构(表头名称)与该测试文件相同。你编写的解析器需要能够处理任意的合法输入文件。
  3. 文件的读入应该放在 MarkdownTable 中,每从文件中读到一行时,将这一行作为参数传给 splitTableRow ,将返回的数组作为参数传给 MarkdownTableRecordMarkdownTableHead
  4. MarkdownTableRecordMarkdownTableHead 的构造函数继承自 MarkdownTableRow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant