-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
13 changed files
with
194 additions
and
67 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
k-distribution/tests/regression-new/issue-3647-debugTokens/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DEF=test | ||
EXT=test | ||
TESTDIR=. | ||
KAST_FLAGS=--debug-tokens | ||
|
||
include ../../../include/kframework/ktest.mak |
14 changes: 14 additions & 0 deletions
14
k-distribution/tests/regression-new/issue-3647-debugTokens/a.test.kast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
1 + 2 + aaaaaaaaaaaa | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
+ 10000000 | ||
+ "str" | ||
+ "long str that breaks alighnment" |
15 changes: 15 additions & 0 deletions
15
k-distribution/tests/regression-new/issue-3647-debugTokens/a.test.kast.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|"Match" | (location) | Terminal | | ||
|---------------------------------------------------------------------------------|---------------|---------------------| | ||
|"1" | (1,1,1,2) | r"[\\+-]?[0-9]+" | | ||
|"+" | (1,3,1,4) | "+" | | ||
|"2" | (1,5,1,6) | r"[\\+-]?[0-9]+" | | ||
|"+" | (1,7,1,8) | "+" | | ||
|"aaaaaaaaaaaa" | (1,9,1,21) | r"[a-z][a-zA-Z0-9]*"| | ||
|"+" | (12,1,12,2) | "+" | | ||
|"10000000" | (12,3,12,11) | r"[\\+-]?[0-9]+" | | ||
|"+" | (13,1,13,2) | "+" | | ||
|"\"str\"" | (13,3,13,8) | r"[\\\"](([^\\\"\\n\\r\\\\])|([\\\\][nrtf\\\"\\\\])|([\\\\][x][0-9a-fA-F]{2})|([\\\\][u][0-9a-fA-F]{4})|([\\\\][U][0-9a-fA-F]{8}))*[\\\"]"| | ||
|"+" | (14,1,14,2) | "+" | | ||
|"\"long str that breaks alighnment\"" | (14,3,14,103) | r"[\\\"](([^\\\"\\n\\r\\\\])|([\\\\][nrtf\\\"\\\\])|([\\\\][x][0-9a-fA-F]{2})|([\\\\][u][0-9a-fA-F]{4})|([\\\\][U][0-9a-fA-F]{8}))*[\\\"]"| | ||
|"" | (15,1,15,1) | "<eof>" | | ||
|
1 change: 1 addition & 0 deletions
1
k-distribution/tests/regression-new/issue-3647-debugTokens/b.test.kast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 + 2 + aaa |
9 changes: 9 additions & 0 deletions
9
k-distribution/tests/regression-new/issue-3647-debugTokens/b.test.kast.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|"Match" | (location) | Terminal | | ||
|--------|------------|---------------------| | ||
|"1" | (1,1,1,2) | r"[\\+-]?[0-9]+" | | ||
|"+" | (1,3,1,4) | "+" | | ||
|"2" | (1,5,1,6) | r"[\\+-]?[0-9]+" | | ||
|"+" | (1,7,1,8) | "+" | | ||
|"aaa" | (1,9,1,12) | r"[a-z][a-zA-Z0-9]*"| | ||
|"" | (2,1,2,1) | "<eof>" | | ||
|
14 changes: 14 additions & 0 deletions
14
k-distribution/tests/regression-new/issue-3647-debugTokens/test.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) K Team. All Rights Reserved. | ||
|
||
module TEST-SYNTAX | ||
imports INT-SYNTAX | ||
imports ID-SYNTAX | ||
imports STRING-SYNTAX | ||
syntax Exp ::= Exp "+" Exp [left] | Int | Id | String | ||
endmodule | ||
|
||
module TEST | ||
imports TEST-SYNTAX | ||
configuration <k> $PGM:Exp </k> | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters