Lerna - это инструмент управления многопакетными репозиториями с открытым исходным кодом. Он позволяет разработчикам управлять несколькими пакетами в одном монорепозитории, включая версионирование, публикацию, управление зависимостями и сборку.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class ArithmeticParser { | |
private readonly input: string | |
private pos: number | |
public constructor(input: string) { | |
this.input = input | |
this.pos = 0 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%lex | |
%% | |
\s+ /* skip ws */ | |
[0-9]+ return 'NUMBER' | |
\+ return 'ADD' | |
\- return 'SUB' | |
\* return 'MUL' | |
\/ return 'DIV' | |
\( return 'LPAREN' | |
\) return 'RPAREN' |