Commit 0e7bb22a authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Updated tests

parent 47a0ae42
......@@ -111,7 +111,7 @@ int main(int argc, char *argv[]){
//Create a GrammarBuilder:
ABNFGrammarBuilder builder;
//construct the grammar from the grammar file, the core rules are included since required by most RFCs.
shared_ptr<Grammar> grammar=builder.createFromAbnf("sipgrammar.txt", make_shared<CoreRules>());
shared_ptr<Grammar> grammar=builder.createFromAbnfFile("sipgrammar.txt", make_shared<CoreRules>());
if (!grammar){
cerr<<"Could not build grammar from sipgrammar.txt"<<endl;
......
......@@ -41,7 +41,7 @@ int main(int argc, char *argv[]){
ABNFGrammarBuilder builder;
shared_ptr<Grammar> grammar=make_shared<Grammar>(file);
grammar->include(make_shared<CoreRules>());
grammar = builder.createFromAbnf(file,grammar);
grammar = builder.createFromAbnfFile(file,grammar);
if (message_file){
ifstream istr(message_file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment