Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belr
Commits
0e7bb22a
Commit
0e7bb22a
authored
Nov 27, 2015
by
Sylvain Berfini
🐮
Browse files
Updated tests
parent
47a0ae42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tests/belrdemo.cc
tests/belrdemo.cc
+1
-1
tests/belrparse.cc
tests/belrparse.cc
+1
-1
No files found.
tests/belrdemo.cc
View file @
0e7bb22a
...
@@ -111,7 +111,7 @@ int main(int argc, char *argv[]){
...
@@ -111,7 +111,7 @@ int main(int argc, char *argv[]){
//Create a GrammarBuilder:
//Create a GrammarBuilder:
ABNFGrammarBuilder
builder
;
ABNFGrammarBuilder
builder
;
//construct the grammar from the grammar file, the core rules are included since required by most RFCs.
//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
.
createFromAbnf
File
(
"sipgrammar.txt"
,
make_shared
<
CoreRules
>
());
if
(
!
grammar
){
if
(
!
grammar
){
cerr
<<
"Could not build grammar from sipgrammar.txt"
<<
endl
;
cerr
<<
"Could not build grammar from sipgrammar.txt"
<<
endl
;
...
...
tests/belrparse.cc
View file @
0e7bb22a
...
@@ -41,7 +41,7 @@ int main(int argc, char *argv[]){
...
@@ -41,7 +41,7 @@ int main(int argc, char *argv[]){
ABNFGrammarBuilder
builder
;
ABNFGrammarBuilder
builder
;
shared_ptr
<
Grammar
>
grammar
=
make_shared
<
Grammar
>
(
file
);
shared_ptr
<
Grammar
>
grammar
=
make_shared
<
Grammar
>
(
file
);
grammar
->
include
(
make_shared
<
CoreRules
>
());
grammar
->
include
(
make_shared
<
CoreRules
>
());
grammar
=
builder
.
createFromAbnf
(
file
,
grammar
);
grammar
=
builder
.
createFromAbnf
File
(
file
,
grammar
);
if
(
message_file
){
if
(
message_file
){
ifstream
istr
(
message_file
);
ifstream
istr
(
message_file
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment