Implementing Variable Declarations (LET/CONST) - Programming Language From Scratch

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 18

  • @DoubleDotStudio
    @DoubleDotStudio 9 місяців тому +3

    These tutorials are useful not just to make a programming language but also to learn TypeScript. Great work. :)

  • @ZENUX_EDITS
    @ZENUX_EDITS 11 місяців тому +9

    4k subs? You deserve more than 4 million bro.

  • @Gurka-1
    @Gurka-1 Рік тому +5

    I like how you included the error solving in the video. Awesome tutorial!

  • @kevinlee8512
    @kevinlee8512 Рік тому +3

    This is an awesome series. Thank you, and subscribed.

  • @severinschmid4808
    @severinschmid4808 3 місяці тому

    gotta say, this is an awesome series. well done!

  • @mumk
    @mumk 5 місяців тому +1

    lovely tutorial, great pacing, god bless you

  • @JoachimReiss
    @JoachimReiss 8 місяців тому +1

    instead of `as VarDeclaration` etc you could use `satisfies VarDeclaration`. This way you would catch type errors better later. But probably this video was created before `satisfies` was available in TS

    • @tylerlaceby
      @tylerlaceby  8 місяців тому

      That is an excellent point. Satisfied is much better suited for this case.

    • @mouradbougarne1162
      @mouradbougarne1162 2 місяці тому

      @@tylerlaceby satisfies won't work as expected, as example if the return value is : Stmt and he does satisfies VarDeclaration it will show an error.

  • @mariansam_was_taken
    @mariansam_was_taken 2 роки тому +3

    cool stuff man

  • @peaps
    @peaps Рік тому

    A lot of good material here, - am following along but doing it in Javascript... Slowly realizing how Typescript does indeed provide certain benefit. I haven't made the switch yet though.. 😬

  • @thesituation5315
    @thesituation5315 Рік тому +1

    Is there anywhere I could ask you questions about this?

    • @tylerlaceby
      @tylerlaceby  Рік тому +2

      For sure. Feel free to reach out on discord and I would love to talk about any questions you have regarding parsing/compiling etc.
      If you want you can hop on a discord call with me and I can go over any questions you have.
      My discord is tylerlaceby#9121

    • @thesituation5315
      @thesituation5315 Рік тому

      @@tylerlaceby Thanks, could you invite me?

  • @EliasWolfy
    @EliasWolfy 8 місяців тому

    4:07 I'm making a language based on this tutorial.
    I have a different syntax, " identifier : type value; ", I would appreciate it if you could help me by telling me the best way to handle this.

    • @tylerlaceby
      @tylerlaceby  8 місяців тому

      I can. It would be easiest inside discord

  • @mrmaniac9905
    @mrmaniac9905 Рік тому

    why not just build an AST from the source before interpreting it.. you can get type information and attributes like constant and static within the nodes and not have to do weird stuff like storing a separate set of constants.... seems silly to me

    • @tylerlaceby
      @tylerlaceby  Рік тому +2

      This is what we do. We build the AST, then interpret it. And yes we could write a type checker and deal witt that however this series is a high level overview. There’s only so much time per episode and in my busy life.
      The goal of the series is a introduction to parsers and basic interpreters. Not a series about building a compiler with JIT, Static Analysis, Optimized IR, Etc….