Loading...
Loading...
Compare original and translation side by side
kgf tokenskgf tokensindexion kgf inspectindexion kgf inspectindexion kgf inspect <file>
indexion kgf inspect --spec=typescript src/app.tsindexion kgf inspect <file>
indexion kgf inspect --spec=typescript src/app.tsindexion kgf tokensindexion kgf tokensindexion kgf tokens <file>
indexion kgf tokens --spec=go-mod go.modindexion kgf tokens <file>
indexion kgf tokens --spec=go-mod go.modindexion kgf eventsindexion kgf eventsindexion kgf events <file>indexion kgf events <file>indexion kgf edgesindexion kgf edgesindexion kgf edges <file>
indexion kgf edges fixtures/project/npm/package.jsonindexion kgf edges <file>
indexion kgf edges fixtures/project/npm/package.json| Option | Default | Description |
|---|---|---|
| auto-detect | KGF spec name to use |
| kgfs | KGF specs directory |
| 选项 | 默认值 | 描述 |
|---|---|---|
| 自动检测 | 要使用的 KGF 规范名称 |
| kgfs | KGF 规范目录 |
indexion greppubKW_pub=== lexundefinedindexion greppubKW_pub=== lexundefined
Common token kinds (MoonBit):
- `KW_pub`, `KW_fn`, `KW_struct`, `KW_enum`, `KW_type`, `KW_trait`, `KW_let`, `KW_for`
- `Ident` (lowercase identifiers), `TypeIdent` (PascalCase type names)
- `LPAREN`, `RPAREN`, `LBRACE`, `RBRACE`, `LBRACKET`, `RBRACKET`
- `NL` (newline), `SKIP` (whitespace — filtered from grep patterns)
- `DocComment`, `DocLine`, `DocSection`, `LineComment`, `BlockComment`
- `String`, `Number`, `Char`
常见 token 类型(MoonBit):
- `KW_pub`、`KW_fn`、`KW_struct`、`KW_enum`、`KW_type`、`KW_trait`、`KW_let`、`KW_for`
- `Ident`(小写标识符)、`TypeIdent`(PascalCase 类型名)
- `LPAREN`、`RPAREN`、`LBRACE`、`RBRACE`、`LBRACKET`、`RBRACKET`
- `NL`(换行符)、`SKIP`(空白符——会从 grep 模式中过滤)
- `DocComment`、`DocLine`、`DocSection`、`LineComment`、`BlockComment`
- `String`、`Number`、`Char`indexion kgf inspect <file>tokenseventsedgeskgfs/<lang>.kgfindexion kgf inspect <file>tokenseventsedgeskgfs/<lang>.kgf