ความคิดเห็น •

  • @DiamantOpp
    @DiamantOpp ปีที่แล้ว +4

    This is actually an amazing tutorial! You explain things really well too, unlike almost every other tutorial on the same subject

  • @AndreasCorelli-dw3mx
    @AndreasCorelli-dw3mx 17 วันที่ผ่านมา

    This is so helpful! I always wondered how lexers were implemented and even if this isn't something very advanced, it makes understanding so much easier! Thank you!

  • @silent4198
    @silent4198 ปีที่แล้ว +1

    damnnn underrated my guy, you literally took making an ENTIRELY NEW CODING LANGUAGE, and made it EASY

    • @theivorycoder
      @theivorycoder ปีที่แล้ว

      thank you! that’s the goal 😄

  • @Alexciaooo
    @Alexciaooo ปีที่แล้ว +2

    How are you so underrated? This video is amazing!

  • @Wallee580
    @Wallee580 6 หลายเดือนก่อน

    I watched the first five minutes, understood the concept, and made my own. Thank you for the great explanation!

    • @theivorycoder
      @theivorycoder 6 หลายเดือนก่อน +1

      Glad it helped!

  • @spaghettiking653
    @spaghettiking653 ปีที่แล้ว +7

    Legendary work! I'm currently going through the same process of making a compiler, so I guess TH-cam sent me here to be amongst comrades. Best of luck on the rest of this language! Have you read any books like "Crafting Interpreters", by the way? That one is an absolute treasure for learning to make a language, plus it's graciously hosted for free online. It was a colossal help in my own studies at the very least, so who knows-it might be of use to you as well :)

    • @theivorycoder
      @theivorycoder ปีที่แล้ว +1

      I haven't! But not for long ;D

  • @neza05
    @neza05 5 หลายเดือนก่อน +1

    I really appreciate how you explained that. It helped me understand the concept much better.🤝

    • @theivorycoder
      @theivorycoder 5 หลายเดือนก่อน

      That’s great to hear!

  • @prakamyakhare7505
    @prakamyakhare7505 ปีที่แล้ว +6

    I have created my own programming language too using python as a backend but in my way, i mean that using my own set of logics to create an environment out from it and I haven't red any compiler design books. And it's working quite well then i had expected:').

    • @lsfornells
      @lsfornells ปีที่แล้ว +3

      Make a video

    • @theivorycoder
      @theivorycoder ปีที่แล้ว +4

      Great! I'd love to see it

    • @lsfornells
      @lsfornells ปีที่แล้ว +2

      @@theivorycoder It was meant to be an imperative grammar tense, not infinitive. I’m asking him to show what he did

    • @theivorycoder
      @theivorycoder ปีที่แล้ว +1

      @@lsfornells I'm sorry, I don't really understand what you mean. I was telling Prakamya Khare that I would like to see their language

    • @lsfornells
      @lsfornells ปีที่แล้ว

      @@theivorycoder Yes, sorry, I replied to you on mistake. I love compilers too

  • @ArtikLamartik
    @ArtikLamartik 2 หลายเดือนก่อน

    I am a python programmer, and this is very good!

  • @quantaviousdinglenut
    @quantaviousdinglenut 2 หลายเดือนก่อน

    i know this might sound stupid, but what theme do you use, its easier for me to match colors than match words/symbols. thanks!

  • @tomasvanercreates8997
    @tomasvanercreates8997 3 หลายเดือนก่อน

    I think there might be a slight problem with quotes. If you try to parse "Hh'd'Gg", it will break it into three tokens, not 1, won't it?

  • @pusab2064
    @pusab2064 ปีที่แล้ว +2

    cant wait for part 2

  • @axsis4102
    @axsis4102 ปีที่แล้ว +2

    I love it!!! Please make more videos like this!

  • @rezqy_
    @rezqy_ ปีที่แล้ว +3

    Nice tutorial, but how could you take print("Hi")? If I append "(" and ")", it shows me ['(', ')', 'print"Hello, world!"']

    • @theivorycoder
      @theivorycoder ปีที่แล้ว +3

      good question! this will be covered in a later episode where I go through how to add custom syntax

  • @kenzostaelens1688
    @kenzostaelens1688 ปีที่แล้ว +1

    i think there is an issue with " ' " crearing an invalid token, is it not better to compare symbol and begin of last token if last_token[0] != last_token[-1] for " and '
    also me nitpicking here but: == False... really?

    • @theivorycoder
      @theivorycoder ปีที่แล้ว

      I completely agree! This was a while ago and I was no expert at python 😂😂Looking back recently it does seem that this code is incredibly messy and inefficient. I'm thinking of starting the series again.

    • @kenzostaelens1688
      @kenzostaelens1688 ปีที่แล้ว +1

      @@theivorycoder that's an option, also, for the parser, is it not better to build an AST (en.m.wikipedia.org/wiki/Abstract_syntax_tree python also uses this internally)? it would make for a more generalized approach (as not every language had exec/eval functionality)

  • @coulterminer
    @coulterminer 3 หลายเดือนก่อน

    Good tutorial, but I would recommend actually making your lexer a class and parsing by line for scalibility and adaptability

  • @theowillis6870
    @theowillis6870 ปีที่แล้ว +1

    I would recommend using a state machine.

  • @homerlol9058
    @homerlol9058 ปีที่แล้ว +2

    excellent video
    looking forward for part 2 :)

    • @theivorycoder
      @theivorycoder ปีที่แล้ว +2

      thanks! you won't have to wait too long hopefully :)

  • @oglothenerd
    @oglothenerd ปีที่แล้ว +4

    Alright, a few seconds in. Haven't watched more. But since this is written in Pythin, I am really hoping the custom language is not interpreted! Please be compiled!

    • @warmBy
      @warmBy 3 หลายเดือนก่อน +1

      How do you imagine a compiler written in Python?

    • @oglothenerd
      @oglothenerd 3 หลายเดือนก่อน +1

      @@warmBy You can absolutely write a compiler in Python!

    • @oglothenerd
      @oglothenerd 3 หลายเดือนก่อน +1

      @@warmBy The way a compiler and an interpreter differ is that an interpreter processes the AST, and a compiler translates the AST to binary or ASM or C or something else.

  • @A91nrehtuoS
    @A91nrehtuoS ปีที่แล้ว +1

    Amazing! Are you planning to do more?

    • @theivorycoder
      @theivorycoder ปีที่แล้ว

      Don't worry I'm going to get round to it soon! 👍

  • @5-mintuts590
    @5-mintuts590 ปีที่แล้ว +2

    Very good tutorial !

  • @SabeDoesThingsChannel
    @SabeDoesThingsChannel ปีที่แล้ว +1

    but like how do you obtain this knowledge. I have tried but with no avail. good job

    • @theivorycoder
      @theivorycoder ปีที่แล้ว

      It can seem like a bit of a mystery. But if you dig around enough you will find it. I'm just trying to make it more accessible :)

    • @SabeDoesThingsChannel
      @SabeDoesThingsChannel ปีที่แล้ว +1

      @@theivorycoder And I thank you so much for that.

  • @alexmctvods4595
    @alexmctvods4595 ปีที่แล้ว +1

    I LOVEEEE THIS VCIDEOOOOO

    • @theivorycoder
      @theivorycoder ปีที่แล้ว

      I’m glad you’ve decided to get into coding alex 👍

  • @isaacalexisrivera3157
    @isaacalexisrivera3157 ปีที่แล้ว +2

    What if i want to use "

    • @theivorycoder
      @theivorycoder ปีที่แล้ว +1

      if you mean declaring it like “” Then I’d recommend applying the same principle we used for recognising strings. If you mean “

    • @warmBy
      @warmBy 3 หลายเดือนก่อน

      Make an appointment with a psychotherapist

  • @mikiex
    @mikiex 7 หลายเดือนก่อน

    Every time you mention Lexer it sets off my Alexa :)

    • @theivorycoder
      @theivorycoder 7 หลายเดือนก่อน

      😂😂

    • @mikiex
      @mikiex 7 หลายเดือนก่อน

      @@theivorycoderYou need to Ko-fi or Buy me a Coffee!

  • @Gkcrafting
    @Gkcrafting ปีที่แล้ว +3

    Thanks, that's awesome!

  • @26.tranduytai8
    @26.tranduytai8 ปีที่แล้ว +1

    kid this is not how it works

    • @theivorycoder
      @theivorycoder ปีที่แล้ว

      I understand that, this is merely a simplified version to introduce people to the fundamental concepts. I am fully aware no real interpreter would be coded like this

    • @HupLOader561
      @HupLOader561 ปีที่แล้ว

      Look, it's a simple project, go make one yourself.