summaryrefslogtreecommitdiff
path: root/test/rat_tests-lexers.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2020-12-05 20:06:52 +1100
committerJed Barber <jjbarber@y7mail.com>2020-12-05 20:06:52 +1100
commit8e5afbe87e05ce78521a3dbcd0ba8dc71bbaffec (patch)
treef0a0be9de85dcd6f4e92e41073b249fb057b7e96 /test/rat_tests-lexers.adb
parent303d4adff90279d0c9ac79adc667abc4d65df945 (diff)
Workaround for linker issues in unit tests
Diffstat (limited to 'test/rat_tests-lexers.adb')
-rw-r--r--test/rat_tests-lexers.adb43
1 files changed, 0 insertions, 43 deletions
diff --git a/test/rat_tests-lexers.adb b/test/rat_tests-lexers.adb
index e216461..7c2fb97 100644
--- a/test/rat_tests-lexers.adb
+++ b/test/rat_tests-lexers.adb
@@ -1,33 +1,8 @@
-with
-
- Packrat.Errors,
- Packrat.Traits,
- Packrat.Lexers.Debug,
- Packrat.Utilities;
-
-
package body Rat_Tests.Lexers is
- package PU renames Packrat.Utilities;
-
-
- type My_Labels is (One, Two, Three);
-
-
- package Slexy_Traits is new Packrat.Traits (My_Labels, Character, String);
- package Slexy is new Packrat.Lexers (Slexy_Traits);
- package Slebug is new Slexy.Debug;
-
-
- use type Slexy.Combinator_Result;
-
-
-
-
-
function Join_Check
return Test_Result
is
@@ -648,24 +623,6 @@ package body Rat_Tests.Lexers is
- type Word_Enum is (Blank, Word, Whitespace);
-
- package Swordy_Traits is new Packrat.Traits (Word_Enum, Character, String);
- package Swordy is new Packrat.Lexers (Swordy_Traits);
- package Swolbug is new Swordy.Debug;
-
- use type Swordy_Traits.Tokens.Token_Type;
- use type Swordy_Traits.Tokens.Token_Array;
-
- function Satisfy_Letter is new Swordy.Satisfy (PU.Is_Letter);
- function Many_Letter is new Swordy.Many (Satisfy_Letter, 1);
- function Satisfy_Whitespace is new Swordy.Satisfy (PU.Is_Whitespace);
- function Many_Whitespace is new Swordy.Many (Satisfy_Whitespace, 1);
-
- function Stamp_Word is new Swordy.Stamp (Word, Many_Letter);
- function Ignore_Whitespace is new Swordy.Ignore (Whitespace, Many_Whitespace);
-
-
function Scan_Parts_Check
return Test_Result
is