Understand Abstract Syntax Trees - ASTs - in Practical and Useful Ways for Frontend Developers

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

КОМЕНТАРІ • 34

  • @nightwolf4343
    @nightwolf4343 11 місяців тому +3

    Usually I don't write comments for the videos, but this one is really helpful. So I would like to tell: Thank you for this!

  • @iyar220
    @iyar220 Рік тому +5

    I'm learning how to build compilers, and I was a bit lost at the subject of context-free grammars and ASTs, thanks for helping to clear that up!

  • @ayush612
    @ayush612 2 роки тому +10

    Thank you sir for creating this unique video and in such depth ... Thank you and such an awesome presentation and quality!

    • @newlinedotco
      @newlinedotco  2 роки тому +1

      You are welcome! Thanks for the kind words. We are glad you enjoyed this.

  • @AzadBilge1337
    @AzadBilge1337 Місяць тому

    I am building a website editor. Any change in blocks data structure forces me to change the all templates data by hand. Thats why i am researching how AST works and how to build for my application. You began to the video with examples that exactly fit my situation

  • @James-z6x3u
    @James-z6x3u 3 місяці тому

    Great video. Learning this for GraphQL introspection parsing of nested fields and arguments.

  • @hamidmouad829
    @hamidmouad829 2 роки тому +2

    22:07
    const rootNode = parse(code).program.body[0].expression;
    function traverse(node) {
    if (!node) {
    return;
    }
    if (node.type === "NumericLiteral") {
    console.log(node.value);
    }
    if (node.left) {
    traverse(node.left);
    }
    if (node.right) {
    traverse(node.right);
    }
    }
    traverse(rootNode);

  • @a.v7998
    @a.v7998 3 місяці тому

    Very interesting video! I love these kind of videos!

  • @abdullahahmed8468
    @abdullahahmed8468 2 роки тому +2

    really that's amazing and a lot of useful concepts and tools and examples.
    Thank you so much.

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

    Thank you this will help me in my next project

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

    Thank you very much!

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

    Brilliant explanation

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

    This is great tutorial

  • @vasilygerrans
    @vasilygerrans 2 роки тому

    Excellent video! Thank you

    • @newlinedotco
      @newlinedotco  2 роки тому

      Thanks! We are glad you enjoyed this.

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

    This is amazing.

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

      Awesome! We are glad this was helpful.

  • @solitarywayfarer8693
    @solitarywayfarer8693 2 роки тому

    How can I generate AST for C source code using C++ language? Please suggest me something.

    • @newlinedotco
      @newlinedotco  2 роки тому

      This course was produced for JavaScript, but the theory/principles should carry to most other languages/tools. Our Discord server is a great resource to connect with others. You can join us here: discord.com/invite/D88ppSb

  • @王土达-b2z
    @王土达-b2z 2 роки тому +1

    thank you

  • @dikhyantkrishnadalai6422
    @dikhyantkrishnadalai6422 2 роки тому

    Thank you
    It was helpful

    • @newlinedotco
      @newlinedotco  2 роки тому

      Awesome! We are glad that you enjoyed this.

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

    Awesome video, keep it up 😄

  • @easycomputerscience69
    @easycomputerscience69 2 роки тому

    Can any one tell AST for java programs

    • @newlinedotco
      @newlinedotco  2 роки тому

      This course is aimed at JavaScript, but the theory/principles should carry to most other languages/tools. With that focus, I don't have a specific tool recommendation but maybe google/stack overflow could help point you toward the right tools.

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

    wonderful😇