How to implement a syntax checker using C# ?
-
Hi guys, I need to develop a SQL syntax checker in C#, how do I go about doing that, I think there are two approaches, one is with RegEx and other is, I can create some customised SQL Dictionary which can be cross-checked whenever I enter some SQL statement in a text box. Please help. I need some more ideas for this concept ?
-
Hi guys, I need to develop a SQL syntax checker in C#, how do I go about doing that, I think there are two approaches, one is with RegEx and other is, I can create some customised SQL Dictionary which can be cross-checked whenever I enter some SQL statement in a text box. Please help. I need some more ideas for this concept ?
SQL is simple enough that regex may work. However, not all combinations of SQL statements are valid SQL, so you probably need a more complex parser for it to really work.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Hi guys, I need to develop a SQL syntax checker in C#, how do I go about doing that, I think there are two approaches, one is with RegEx and other is, I can create some customised SQL Dictionary which can be cross-checked whenever I enter some SQL statement in a text box. Please help. I need some more ideas for this concept ?
In the good old days we used lex, or flex for this purpose, eventually combined with yacc or bison. Now I don't know. You may google for keywords like parser generator or lexical analysis. No idea how these cooperate with C#
-
Hi guys, I need to develop a SQL syntax checker in C#, how do I go about doing that, I think there are two approaches, one is with RegEx and other is, I can create some customised SQL Dictionary which can be cross-checked whenever I enter some SQL statement in a text box. Please help. I need some more ideas for this concept ?
I found two parsers: 1) http://www.sqlparser.com/[^] 2) http://www.experlog.com/gibello/zql/[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
Hi guys, I need to develop a SQL syntax checker in C#, how do I go about doing that, I think there are two approaches, one is with RegEx and other is, I can create some customised SQL Dictionary which can be cross-checked whenever I enter some SQL statement in a text box. Please help. I need some more ideas for this concept ?
You may want to consider using Antlr[^]. It has grammars for various languages.
Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.
-
Hi guys, I need to develop a SQL syntax checker in C#, how do I go about doing that, I think there are two approaches, one is with RegEx and other is, I can create some customised SQL Dictionary which can be cross-checked whenever I enter some SQL statement in a text box. Please help. I need some more ideas for this concept ?