Oracle Parser
-
Hi, I am trying to write custom grammar to parse oracle statements. Can anyone point me to the right direction. Thanks in advance.
-
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.
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.
-
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.
-
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.
-
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.
-
Hi, I am trying to write custom grammar to parse oracle statements. Can anyone point me to the right direction. Thanks in advance.
-
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.
-
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#.