Skip to content

Commit 295bf2c

Browse files
author
Viktor Chernev
committed
Fixing tilde-related bug
1 parent 3487b1a commit 295bf2c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

DescribeParser/Visitors/VisitorsFor10/UnfoldVisitor10.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private string DoExpression(DescribeUnfold u, Describe10Parser.ExpressionContext
306306
else
307307
{
308308
u.Tildes.Add(head, new List<string>());
309-
u.Productions.Add(head, new List<string>() { right.Substring(1) });
309+
u.Productions.Add(head, new List<string>() { right });
310310
}
311311
}
312312
else if (thirdChild is Describe10Parser.ExpressionContext)
@@ -561,6 +561,7 @@ private string DoItem(DescribeUnfold u, Describe10Parser.ItemContext context)
561561
u.ItemidFile[tag].Add(cf);
562562
}
563563

564+
564565
if (isTilde) tag = "~" + tag;
565566
return tag;
566567
}

DescribeParser/Visitors/VisitorsFor11/UnfoldVisitor11.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ private string DoExpression(DescribeUnfold u, Describe11Parser.ExpressionContext
304304
else
305305
{
306306
u.Tildes.Add(head, new List<string>());
307-
u.Productions.Add(head, new List<string>() { right.Substring(1) });
307+
u.Productions.Add(head, new List<string>() { right });
308308
}
309309
}
310310
else if (thirdChild is Describe11Parser.ExpressionContext)

DescribeTranspiler.CLI/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"DescribeTranspiler.CLI": {
44
"commandName": "Project",
5-
"commandLineArgs": "parse-folder \"C:\\Users\\Viktor Chernev\\Desktop\\@Ds\\MyLife\" \"C:\\Users\\Viktor Chernev\\Desktop\\testing\\!compiled\\@MyLife.html\" translator=html_page beautify=true verbosity=h logfile=\"C:\\Users\\Viktor Chernev\\Desktop\\testing\\!compiled\\@MyLife.log\" dsonly=false toponly=false onerror=ignore"
5+
"commandLineArgs": "parse-folder \"C:\\Users\\Viktor Chernev\\Desktop\\@Ds\\MyLife\" \"C:\\Users\\Viktor Chernev\\Desktop\\testing\\!compiled\\HTML_PAGE\\@MyLife.html\" translator=html_page beautify=true verbosity=h logfile=\"C:\\Users\\Viktor Chernev\\Desktop\\testing\\!compiled\\HTML_PAGE\\@MyLife.log\" dsonly=false toponly=false onerror=ignore"
66
}
77
}
88
}

0 commit comments

Comments
 (0)