Parser for C++
-
I need a parser for C++ that can be integrated in Visual C. I've tried to make one using yacc and bison but it didn't work(didn't manage to do the file). Can anyone help me? Do you know where I can find it? Do you have it? Thank you.
-
I need a parser for C++ that can be integrated in Visual C. I've tried to make one using yacc and bison but it didn't work(didn't manage to do the file). Can anyone help me? Do you know where I can find it? Do you have it? Thank you.
-
I need a parser for C++ that can be integrated in Visual C. I've tried to make one using yacc and bison but it didn't work(didn't manage to do the file). Can anyone help me? Do you know where I can find it? Do you have it? Thank you.
-
I need a parser for C++ that can be integrated in Visual C. I've tried to make one using yacc and bison but it didn't work(didn't manage to do the file). Can anyone help me? Do you know where I can find it? Do you have it? Thank you.
The parser is only a part of the entire project and I don't have enough time left to make one. I just need one that will know which statement is an if/for/while/switch/goto/label, to detect the functions, functions calls, return etc. I just need to know the structure of the program not to make the calculations and the operations. Or to make me the AST. Thanks.
-
Bob Stanneveld wrote: As far as I know, Visual C == Visual C++ not exacly... if you change your source files extension from CPP into C, the compiler will be restricted to a C compiler (not C++)... (hum, it was like this on VS6 ; i'm not sure for later versions...)
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
Bob Stanneveld wrote: As far as I know, Visual C == Visual C++ not exacly... if you change your source files extension from CPP into C, the compiler will be restricted to a C compiler (not C++)... (hum, it was like this on VS6 ; i'm not sure for later versions...)
TOXCCT >>> GEII power
[toxcct][VisualCalc]toxcct wrote: not exacly... if you change your source files extension from CPP into C, the compiler will be restricted to a C compiler (not C++)... True, but that still doesn't mean that you can call the whole IDE visual C instead of Visual C++... Anyway, in his own reply to his original post he says that he needs an analyser that gives him the structure of the program... I don't know if such a tool exists... Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
-
toxcct wrote: not exacly... if you change your source files extension from CPP into C, the compiler will be restricted to a C compiler (not C++)... True, but that still doesn't mean that you can call the whole IDE visual C instead of Visual C++... Anyway, in his own reply to his original post he says that he needs an analyser that gives him the structure of the program... I don't know if such a tool exists... Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
Bob Stanneveld wrote: Anyway, in his own reply to his original post he says that he needs an analyser that gives him the structure of the program No,no, I need a parser. I think a parser knows which statement is an conditional one or not. Bob Stanneveld wrote: I don't know if such a tool exists. It will as soon as I finish this project. :)
-
Bob Stanneveld wrote: Anyway, in his own reply to his original post he says that he needs an analyser that gives him the structure of the program No,no, I need a parser. I think a parser knows which statement is an conditional one or not. Bob Stanneveld wrote: I don't know if such a tool exists. It will as soon as I finish this project. :)
marius-adrian wrote: No,no, I need a parser. i am currently working on such a project (C++ parser), but as it is a personal goal, i don't work very fast on it. however, the principle is simple, and based on the work exposed in my article
VisualCalc
. cheers,
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
marius-adrian wrote: No,no, I need a parser. i am currently working on such a project (C++ parser), but as it is a personal goal, i don't work very fast on it. however, the principle is simple, and based on the work exposed in my article
VisualCalc
. cheers,
TOXCCT >>> GEII power
[toxcct][VisualCalc]toxcct wrote: VisualCalc. I love that Calculator :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
Bob Stanneveld wrote: Anyway, in his own reply to his original post he says that he needs an analyser that gives him the structure of the program No,no, I need a parser. I think a parser knows which statement is an conditional one or not. Bob Stanneveld wrote: I don't know if such a tool exists. It will as soon as I finish this project. :)
Damn those errors!!! X| X| Have to type it all over again... marius-adrian wrote: I just need to know the structure of the program not to make the calculations and the operations. Or to make me the AST. So you need to know the structure of a parser that can parse C++? If I'm correct, you can start by reading the following articles about regular expressions, grammers and languages: Regular expression Library Builder[^] Fast regular expressions [^] Writing own regular expression parser[^] CDfaRegEx: A DFA Implementation of a Regular Expression Compiler [^] marius-adrian wrote: Bob Stanneveld wrote: I don't know if such a tool exists. It will as soon as I finish this project. Are you going to post it here on CP? I would like too see your article! ;) Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
-
Damn those errors!!! X| X| Have to type it all over again... marius-adrian wrote: I just need to know the structure of the program not to make the calculations and the operations. Or to make me the AST. So you need to know the structure of a parser that can parse C++? If I'm correct, you can start by reading the following articles about regular expressions, grammers and languages: Regular expression Library Builder[^] Fast regular expressions [^] Writing own regular expression parser[^] CDfaRegEx: A DFA Implementation of a Regular Expression Compiler [^] marius-adrian wrote: Bob Stanneveld wrote: I don't know if such a tool exists. It will as soon as I finish this project. Are you going to post it here on CP? I would like too see your article! ;) Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
Bob Stanneveld wrote: Are you going to post it here on CP? I would like too see your article! I don't know. I'm doing this for my engineer diploma and the project was given to me by a company so I guess it's theirs once I finish it. But if I'll decide not to work for them, I'll post it. :) I just figured out that I need only to extract the classes' names to know that them are user defined data, the #define and #typedef, and the functions' names. After that I can work on every function individualy. As a matter of fact the project is supposed to take two functions, construct the decision tabels for them and see if they are logigally identical.
-
Bob Stanneveld wrote: Are you going to post it here on CP? I would like too see your article! I don't know. I'm doing this for my engineer diploma and the project was given to me by a company so I guess it's theirs once I finish it. But if I'll decide not to work for them, I'll post it. :) I just figured out that I need only to extract the classes' names to know that them are user defined data, the #define and #typedef, and the functions' names. After that I can work on every function individualy. As a matter of fact the project is supposed to take two functions, construct the decision tabels for them and see if they are logigally identical.
marius-adrian wrote: I guess it's theirs Don't guess, find out. Are they paying you anything ? The tigress is here :-D
-
toxcct wrote: VisualCalc. I love that Calculator :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
marius-adrian wrote: I guess it's theirs Don't guess, find out. Are they paying you anything ? The tigress is here :-D
Trollslayer wrote: Are they paying you anything ? Nope. They have somekind of agreement with our teachers and because of that the students were given some projects from that company.
-
Trollslayer wrote: Are they paying you anything ? Nope. They have somekind of agreement with our teachers and because of that the students were given some projects from that company.
So the company gets the benefit, the teachers get something and you do the work ? Make sure you have copyright ! The tigress is here :-D
-
ThatsAlok wrote: VisualCalc. I love that Calculator really ?! wowwwwwww, you congrats me so much... the first guy that tell me my calculator's more than useful, but great !!! you got my 5 !!! :rose::-O
TOXCCT >>> GEII power
[toxcct][VisualCalc]toxcct wrote: really ?! Yeap,I gather some programing logic from there :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta