Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How do people even do LL(k) parsing?

How do people even do LL(k) parsing?

Scheduled Pinned Locked Moved C / C++ / MFC
cssalgorithmsjsontutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • honey the codewitchH Online
    honey the codewitchH Online
    honey the codewitch
    wrote on last edited by
    #1

    I'm working on a project that involves an LL(k) parsing algorithm (or more accurately, a set of algorithms) which seem to be the best kept secret on the Internet. The hunt for how to implement these took me back to C code written in 1989 and some citations for research papers dating back to 1992, which I can't seem to find a copy of the journal it was published in. How do people even do LL(k)? How do they learn it? I understand how Terrence Parr (author of ANTLR) did as he has been instrumental in the crafting of LL(k) parsing algorithms for decades. He's no Aho & Ullman but he's a key player. He's the one that wrote that 1989 code I'm looking at. I've found a few scattered research papers but the math is really heavy. You need a pretty advanced background in CS I think to understand it all. But anyone else that wants to do this kind of thing? Good luck. If you can find the research it won't mean you can understand it, and I can't even find it, much less understand it. All the links are dead, and the citations I'm currently looking at lead to an out of print journal on information processing and information systems It's ridiculous. No wonder there are so few implementations of this available (the major one by Terrence Parr himself)

    Real programmers use butterflies

    L CPalliniC 2 Replies Last reply
    0
    • honey the codewitchH honey the codewitch

      I'm working on a project that involves an LL(k) parsing algorithm (or more accurately, a set of algorithms) which seem to be the best kept secret on the Internet. The hunt for how to implement these took me back to C code written in 1989 and some citations for research papers dating back to 1992, which I can't seem to find a copy of the journal it was published in. How do people even do LL(k)? How do they learn it? I understand how Terrence Parr (author of ANTLR) did as he has been instrumental in the crafting of LL(k) parsing algorithms for decades. He's no Aho & Ullman but he's a key player. He's the one that wrote that 1989 code I'm looking at. I've found a few scattered research papers but the math is really heavy. You need a pretty advanced background in CS I think to understand it all. But anyone else that wants to do this kind of thing? Good luck. If you can find the research it won't mean you can understand it, and I can't even find it, much less understand it. All the links are dead, and the citations I'm currently looking at lead to an out of print journal on information processing and information systems It's ridiculous. No wonder there are so few implementations of this available (the major one by Terrence Parr himself)

      Real programmers use butterflies

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      [https://www.antlr.org/papers/allstar-techreport.pdf\](https://www.antlr.org/papers/allstar-techreport.pdf)

      It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

      honey the codewitchH 1 Reply Last reply
      0
      • L Lost User

        [https://www.antlr.org/papers/allstar-techreport.pdf\](https://www.antlr.org/papers/allstar-techreport.pdf)

        It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

        honey the codewitchH Online
        honey the codewitchH Online
        honey the codewitch
        wrote on last edited by
        #3

        I'm surprised i didn't find that. I gues I should have dug around ANTLR's website. Thank you, this is a gem. :)

        Real programmers use butterflies

        L 1 Reply Last reply
        0
        • honey the codewitchH honey the codewitch

          I'm surprised i didn't find that. I gues I should have dug around ANTLR's website. Thank you, this is a gem. :)

          Real programmers use butterflies

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Sometimes they all start looking the same. Glad if it helps.

          It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

          1 Reply Last reply
          0
          • honey the codewitchH honey the codewitch

            I'm working on a project that involves an LL(k) parsing algorithm (or more accurately, a set of algorithms) which seem to be the best kept secret on the Internet. The hunt for how to implement these took me back to C code written in 1989 and some citations for research papers dating back to 1992, which I can't seem to find a copy of the journal it was published in. How do people even do LL(k)? How do they learn it? I understand how Terrence Parr (author of ANTLR) did as he has been instrumental in the crafting of LL(k) parsing algorithms for decades. He's no Aho & Ullman but he's a key player. He's the one that wrote that 1989 code I'm looking at. I've found a few scattered research papers but the math is really heavy. You need a pretty advanced background in CS I think to understand it all. But anyone else that wants to do this kind of thing? Good luck. If you can find the research it won't mean you can understand it, and I can't even find it, much less understand it. All the links are dead, and the citations I'm currently looking at lead to an out of print journal on information processing and information systems It's ridiculous. No wonder there are so few implementations of this available (the major one by Terrence Parr himself)

            Real programmers use butterflies

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            Quote:

            the major one by Terrence Parr himself

            Who changes the 'damn thing' at each release in a way that irremediably invalidates the previous stuff... :rolleyes:

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups