2439905184 / 2439905184/Simple-language
使用lexer文法生成词法分析器代码
- 主要语言
- Java
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
Compiler.nim
```
```
Lexer.nim
```
return_type -> "->"
赋值 -> "="
赋值语法2 -> "->"
continue_code -> "-->"
function_keyword -> "func"
array_left -> "["
array_right -> "]"
get_array_element -> "[]"
var_keyword -> "var"
编译指示 -> "{.hint.}"
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
The issue shows lexer grammar rules in a Nim file. Start by examining the existing Compiler.nim and Lexer.nim files to understand the current lexer structure. The task is to generate lexer code from these grammar rules. Look for how tokens like '->', '=', 'func', 'var', '{.hint.}' are currently handled. Implement a code generator that reads the rule format and outputs corresponding Nim lexer procedures. Test by ensuring the generated lexer correctly tokenizes sample code containing these symbols.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- nim
- 领域
- compilers
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100