Lexer [Manus in Mano] @ Bar Americas - 28 Mar feat. Lexer

#SESH #Lexer

https://sesh.sx/e/1964464

Damn. My PLY lexer doesn't recognize hexadecimal numbers, it recognizes them as decimal(0) and symbol(x1).

edit: oh, it's a matter of definition order.

#parser #lexer

Laurence Tratt: Why Split Lexing and Parsing Into Two Separate Phases?

Компилятор языка моделирования в одиночку: от C++ к Rust — находки и откровения

Тема специального языка для моделирования многокомпонентных динамических систем давно меня зацепила и хотелось написать свою реализацию для него, так как было жгучее желание сделать лучше: чтобы работало надёжнее и быстрее, чем у авторов языка (MVL - в статье подробнее про язык), и к тому же ещё и кроссплатформенно. Расскажу про заходы к задаче на C++, почему перешёл в итоге к Rust - что приобрёл, где потерял - поделюсь деталями и самой реализации, которые, надеюсь, будут интересны и растаманам, и плюсовикам, и всем прочим доморощенным компиляторостроителям, а также тем, кого привлекают темы реализации языков, DSL или численного моделирования.

https://habr.com/ru/articles/980924/

#compiler_development #индиразработка #язык_моделирования #AnyDynamics #MVL #parser #lexer #lalrpop #lexgen #dsl

Компилятор языка моделирования в одиночку: от C++ к Rust — находки и откровения

Сумма входящих потоков (выходящие идут с минусом) равна скорости изменения массы жидкости в ёмкости Тема специального языка для моделирования многокомпонентных динамических систем давно меня зацепила...

Хабр
Finally a working #lexer in #cpp
Jez learns Rust by writing a Lexer

PeerTube
Programming languages are absolutely mortified of strings, aren’t they. All those arbitrary words with their alien systems of meaning. They have nightmares about stumbling on an unterminated “ AND THEN EVERYTHI #programming #lexer #syntax #electricsheep
Anybody (very) familiar with #javacc? I'd like to extract the #DFA of the #lexer (for completion suggestions). Is there an option I can give javacc to output the DFA in a readable format?

I can probe the generated #parser for possible next #tokens but not extract their images when they are non-trivial. I have a #regexp library I can use for the analysis if I just can get the #automaton or regular expression for a token.

Wîhennahtwoche! Das heißt wîenechtfîrtage inklusive wîenahtâbent und wînahtnaht. Vielleicht auch mit wîenachtbrôt und weinachtkaese?

Diese und weitere weihnachtliche Lemmata findet man (auch über API) in den Mittelhochdeutschen Wörterbüchern https://woerterbuchnetz.de/ #Lexer #BMZ #Findebuch #LODvent

Wörterbuchnetz