Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
f6c14f6c
Commit
f6c14f6c
authored
Apr 18, 2018
by
di68kap
Browse files
- sync commit
parent
74bb67dd
Changes
8
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
f6c14f6c
...
...
@@ -15,7 +15,7 @@ testdata/*.pdf
*.old
DEBUG*
LOGS
REPORT
**/
REPORT
external_resources/
tmp/*
test/tmp*
...
...
examples/LaTeX/grammar_tests/REPORT/00_test_regexes.md
deleted
100644 → 0
View file @
74bb67dd
Test of parser: "LB"
====================
Match-test "1"
--------------
### Test-code:
### AST
(LB
""
""
)
Fail-test "10"
--------------
### Test-code:
### Messages:
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Test of parser: "GAP"
=====================
Match-test "1"
--------------
### Test-code:
### AST
(GAP
(:RegExp
""
""
""
)
(:Whitespace
" "
)
)
Match-test "2"
--------------
### Test-code:
% Comment
### AST
(GAP
(:RegExp
""
""
""
)
(:Whitespace
""
""
)
)
Match-test "3"
--------------
### Test-code:
### AST
(GAP
(:RegExp
""
""
""
""
)
(:Whitespace
" "
)
)
Fail-test "10"
--------------
### Test-code:
### Messages:
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Fail-test "11"
--------------
### Test-code:
% Comment
% Comment
### Messages:
Error: Parser stopped before end! trying to recover...
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Test of parser: "PARSEP"
========================
Match-test "1"
--------------
### Test-code:
### AST
(PARSEP
""
""
""
)
Match-test "2"
--------------
### Test-code:
% Comment
### AST
(PARSEP
""
""
""
)
Match-test "3"
--------------
### Test-code:
### AST
(PARSEP
""
""
""
)
Match-test "4"
--------------
### Test-code:
% Comment
% Comment
### AST
(PARSEP
""
""
""
)
Match-test "5"
--------------
### Test-code:
% Comment
% Comment
% Comment
### AST
(PARSEP
""
""
""
)
Fail-test "10"
--------------
### Test-code:
### Messages:
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Fail-test "11"
--------------
### Test-code:
### Messages:
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Fail-test "12"
--------------
### Test-code:
% Comment
### Messages:
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Fail-test "13"
--------------
### Test-code:
% Comment
% Comment
% Comment
### Messages:
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Test of parser: "WSPC"
======================
Match-test "1"
--------------
### Test-code:
### AST
(WSPC
" "
)
Match-test "2"
--------------
### Test-code:
% Comment
### AST
(WSPC
(:RegExp
" "
)
(:RegExp
"% Comment"
)
)
Match-test "3"
--------------
### Test-code:
### AST
(WSPC
" "
)
Match-test "4"
--------------
### Test-code:
% Comment
### AST
(WSPC
"% Comment"
)
Match-test "5"
--------------
### Test-code:
% Comment
### AST
(WSPC
(:RegExp
"% Comment"
)
(:RegExp
""
""
)
)
Match-test "6"
--------------
### Test-code:
% Comment
% Comment
### AST
(WSPC
(:RegExp
""
" "
)
(:RegExp
"% Comment"
)
(:RegExp
""
""
" "
)
(:RegExp
"% Comment"
)
(:RegExp
""
""
" "
)
)
Match-test "7"
--------------
### Test-code:
### AST
(WSPC
""
""
""
" "
)
Fail-test "10"
--------------
### Test-code:
X
### Messages:
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Test of parser: "LFF"
=====================
Match-test "1"
--------------
### Test-code:
### AST
(NEW_LINE
""
""
)
Match-test "2"
--------------
### Test-code:
% Comment
### AST
(NEW_LINE
""
""
)
Match-test "3"
--------------
### Test-code:
% Comment
### AST
(NEW_LINE
""
""
)
Match-test "4"
--------------
### Test-code:
### AST
(NEW_LINE
""
""
)
Fail-test "10"
--------------
### Test-code:
### Messages:
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Test of parser: "LF"
====================
Match-test "1"
--------------
### Test-code:
### AST
(LF
(NEW_LINE
""
""
)
)
Match-test "2"
--------------
### Test-code:
% Comment
### AST
(LF
(NEW_LINE
""
""
)
(:RegExp
"% Comment"
)
)
Match-test "3"
--------------
### Test-code:
% Comment
% Comment
### AST
(LF
(NEW_LINE
""
""
)
(:RegExp
"% Comment"
)
(:RegExp
""
""
)
(:RegExp
"% Comment"
)
(:RegExp
""
""
)
)
Fail-test "10"
--------------
### Test-code:
### Messages:
Error: Parser stopped before end! trying to recover...
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
\ No newline at end of file
examples/LaTeX/grammar_tests/REPORT/01_test_text.md
deleted
100644 → 0
View file @
74bb67dd
Test of parser: "text"
======================
Match-test "1"
--------------
### Test-code:
Some plain text
### AST
(text
"Some plain text"
)
Fail-test "10"
--------------
### Test-code:
Low-level text must not contain
\&
escaped characters.
### Messages:
Error: Parser stopped before end! trying to recover...
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Fail-test "11"
--------------
### Test-code:
Low-level text must not contain ] [ brackets.
### Messages:
Error: Parser stopped before end! trying to recover...
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Fail-test "12"
--------------
### Test-code:
Low-level text must not contain { environments }.
### Messages:
Error: Parser stopped before end! trying to recover...
Error: Parser did not match! Invalid source file?
Most advanced: None
Last match: None;
Fail-test "13"
--------------
### Test-code:
Low-level text must not contain any
\c
ommands.
### Messages:
Error: Parser stopped before end! trying to recover...
Error: Parser did not match! Invalid source file?
Most advanced: None