Skip to content

Instantly share code, notes, and snippets.

View Etheresk's full-sized avatar
🏠
Working from home

Etheresk Etheresk

🏠
Working from home
View GitHub Profile
@Etheresk
Etheresk / ArithmeticParser.ts
Created October 29, 2023 08:38
Simple arithmetic parser without error recovery
export class ArithmeticParser {
private readonly input: string
private pos: number
public constructor(input: string) {
this.input = input
this.pos = 0
}
@Etheresk
Etheresk / arithemetic.jison
Created October 29, 2023 08:24
Jison arithmetic grammar
%lex
%%
\s+ /* skip ws */
[0-9]+ return 'NUMBER'
\+ return 'ADD'
\- return 'SUB'
\* return 'MUL'
\/ return 'DIV'
\( return 'LPAREN'
\) return 'RPAREN'
@Etheresk
Etheresk / Lerna for beginners RU.md
Last active May 6, 2023 11:01
Simple and beginners friendly guide to Lerna [Russian]

Lerna - это инструмент управления многопакетными репозиториями с открытым исходным кодом. Он позволяет разработчикам управлять несколькими пакетами в одном монорепозитории, включая версионирование, публикацию, управление зависимостями и сборку.

Содержание