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#
  4. Oracle Parser

Oracle Parser

Scheduled Pinned Locked Moved C#
oracle
9 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.
  • F Offline
    F Offline
    Fayu
    wrote on last edited by
    #1

    Hi, I am trying to write custom grammar to parse oracle statements. Can anyone point me to the right direction. Thanks in advance.

    L P 2 Replies Last reply
    0
    • F Fayu

      Hi, I am trying to write custom grammar to parse oracle statements. Can anyone point me to the right direction. Thanks in advance.

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

      Could you be a bit more specific as to: 1) what you are trying to achieve 2) what you have tried 3) what problems you encountered.

      F 1 Reply Last reply
      0
      • L Lost User

        Could you be a bit more specific as to: 1) what you are trying to achieve 2) what you have tried 3) what problems you encountered.

        F Offline
        F Offline
        Fayu
        wrote on last edited by
        #3

        I want to write a parser that will allow me to take a pl/sql statement and ensure that the statement is correct based on some type of grammer that I will specify. I have not tried anything yet because I dont even know where to start. I am looking for a resource which I can start using that will help me acheive my goal. ------------------------------------------------------------ 1. Parse a selected plsql statement and validate it based on some grammar. 2. I have not tried anything yet because this is completely new to me. I am hoping someone can point me to some resource/documentation/tutorial that will help me acheive this task.

        L 1 Reply Last reply
        0
        • F Fayu

          I want to write a parser that will allow me to take a pl/sql statement and ensure that the statement is correct based on some type of grammer that I will specify. I have not tried anything yet because I dont even know where to start. I am looking for a resource which I can start using that will help me acheive my goal. ------------------------------------------------------------ 1. Parse a selected plsql statement and validate it based on some grammar. 2. I have not tried anything yet because this is completely new to me. I am hoping someone can point me to some resource/documentation/tutorial that will help me acheive this task.

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

          OK, but I don't think this is a technical C# question. I would suggest using Google, or the CodeProject search facility, looking for the keywords 'parse' and 'grammar' as a starting point.

          F 1 Reply Last reply
          0
          • L Lost User

            OK, but I don't think this is a technical C# question. I would suggest using Google, or the CodeProject search facility, looking for the keywords 'parse' and 'grammar' as a starting point.

            F Offline
            F Offline
            Fayu
            wrote on last edited by
            #5

            I was hoping it was possible to do this in C#.

            L 1 Reply Last reply
            0
            • F Fayu

              I was hoping it was possible to do this in C#.

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

              Fayu wrote:

              I was hoping it was possible to do this in C#.

              Well it may be, but before you can start coding you need to design the structure of your program and the logic of your parser and associated grammar. As I said before, try to search on the subjects you are interested in and you may find that someone has written a technical paper on that very subject which will lead you to a solution. Always remember that CodeProject Search and Google are the first steps in finding an answer. But don't expect anyone on these forums to write your program for you. We are all working on our own problems as well as answering questions.

              F 1 Reply Last reply
              0
              • F Fayu

                Hi, I am trying to write custom grammar to parse oracle statements. Can anyone point me to the right direction. Thanks in advance.

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                Why not take a look at using ANTLR[^]? It even has an PL/SQL grammar available here[^].

                "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                My blog | My articles | MoXAML PowerToys | Onyx

                1 Reply Last reply
                0
                • L Lost User

                  Fayu wrote:

                  I was hoping it was possible to do this in C#.

                  Well it may be, but before you can start coding you need to design the structure of your program and the logic of your parser and associated grammar. As I said before, try to search on the subjects you are interested in and you may find that someone has written a technical paper on that very subject which will lead you to a solution. Always remember that CodeProject Search and Google are the first steps in finding an answer. But don't expect anyone on these forums to write your program for you. We are all working on our own problems as well as answering questions.

                  F Offline
                  F Offline
                  Fayu
                  wrote on last edited by
                  #8

                  I was not expecting you to write code for me. I have googled it and have seen that antlr is one way of going but I wanted to know if it was possible to do this in C#.

                  L 1 Reply Last reply
                  0
                  • F Fayu

                    I was not expecting you to write code for me. I have googled it and have seen that antlr is one way of going but I wanted to know if it was possible to do this in C#.

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

                    Well, as a general statement yes, it is possible to do it (or anything else) in C#. However, your original question was framed in such a way that implied you were asking for a full solution to your problem.

                    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