home.social

#lexer — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #lexer, aggregated by home.social.

  1. 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

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

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

    habr.com/ru/articles/980924/

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

  3. 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

  4. 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 woerterbuchnetz.de/ #Lexer #BMZ #Findebuch #LODvent

  5. To double quote or not, that's the question!

    🔍 #PHP string interpolation occurs at compile-time, not runtime

    🏎️ #SingleQuotes vs #DoubleQuotes debate: negligible performance difference

    💻 #OPcache is crucial for optimizing PHP performance

    🔧 #Lexer handles string interpolation during tokenization

    🧠 #AST and opcode generation treat single and double quotes similarly

    📊 #StringConcatenation options: interpolation, comma separation, or dot operator

    Key takeaway: Use the latest #PHP version, enable #OPcache, and choose quotes based on readability, not micro-optimizations.

    dev.to/realflowcontrol/too-dou

  6. Customer data platform Lexer raises $25.5M Series B for global expansion - Left to right: Lexer founders Dave Whittle, Aaron Wallis, Chris Brewer
    The massive shift to online s... - feedproxy.google.com/~r/Techcr #customerdataplatform #fundings&exits #australia #ecommerce #startups #lexer #tc