DulLabs / bhai-lang

A toy programming language written in Typescript
https://bhailang.js.org/
MIT License
3.97k stars 501 forks source link

Constants > TokenTypes Object lacks consistency #272

Open agrahari-himanshu opened 1 year ago

agrahari-himanshu commented 1 year ago

Description

The TokenTypes object with constant values lacks consistency

File path: packages/parser/src/constants/bhaiLangSpec.ts

Issue: Exported object name says TokenTypes, but all the keys in the object doesn't follow same pattern Ex:

Impact of inconsistency: Misleading keys of exported object.

Suggesation: We can have consistent keys, all of them having the suffix as TYPE

Domain

Bhai Lang

Type of Contribution

Refactoring

Code of Conduct