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

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 33

  • @nightwolf4343
    @nightwolf4343 9 месяцев назад +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!

  • @James-z6x3u
    @James-z6x3u Месяц назад

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

  • @a.v7998
    @a.v7998 Месяц назад

    Very interesting video! I love these kind of videos!

  • @ayush612
    @ayush612 2 года назад +9

    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.

  • @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 Месяц назад

    Thank you very much!

  • @ahmedsaka9648
    @ahmedsaka9648 Год назад

    This is great tutorial

  • @manjurulislamkhan4722
    @manjurulislamkhan4722 Год назад

    Brilliant explanation

  • @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.

  • @hamidmouad829
    @hamidmouad829 Год назад +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);

  • @thatisuday
    @thatisuday Год назад

    Awesome video, keep it up 😄

  • @dikhyantkrishnadalai6422
    @dikhyantkrishnadalai6422 2 года назад

    Thank you
    It was helpful

    • @newlinedotco
      @newlinedotco  2 года назад

      Awesome! We are glad that you enjoyed this.

  • @solitarywayfarer8693
    @solitarywayfarer8693 Год назад

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

    • @newlinedotco
      @newlinedotco  Год назад

      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

  • @MrFarooqueazam
    @MrFarooqueazam Год назад

    wonderful😇

  • @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.