forked from kframework/javascript-semantics
-
Notifications
You must be signed in to change notification settings - Fork 1
/
k.patch
21 lines (20 loc) · 908 Bytes
/
k.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/javasources/parsers/Concrete/syntax/KBuiltinsBasic.sdf b/src/javasources/parsers/Concrete/syntax/KBuiltinsBasic.sdf
index 963e291..ddeae0d 100644
--- a/src/javasources/parsers/Concrete/syntax/KBuiltinsBasic.sdf
+++ b/src/javasources/parsers/Concrete/syntax/KBuiltinsBasic.sdf
@@ -20,6 +20,16 @@ lexical syntax
"\"" StringCharDz* "\"" -> DzDzSTRING
~[\"\n\r\\] -> StringCharDz
[\\]~[\n\r] -> StringCharDz
+ "'" StringChar1Dz* "'" -> DzDzSTRING
+ ~[\'\n\r\\] -> StringChar1Dz
+ [\\]~[\n\r] -> StringChar1Dz
+ "/" RegExpCharDz* "/" RegExpFlags -> DzDzSTRING
+ ~[\/\[\n\r\\] -> RegExpCharDz
+ [\\]~[\n\r] -> RegExpCharDz
+ "[" RegExpClassCharDz* "]" -> RegExpCharDz
+ ~[\]\n\r\\] -> RegExpClassCharDz
+ [\\]~[\n\r] -> RegExpClassCharDz
+ [a-zA-Z]* -> RegExpFlags
%% KLabel definition + restrictions lower
"'" KLabelCharDz+ -> KLabelDz