Skip to content

Commit bd5681d

Browse files
committed
backend far from capable of being strictly nullable
finally duplicated the overlapping part of Decl and Stmt (using, alias, variable) removed "public:" etc syntax, replaced by "[pub]:" etc
1 parent 810ae61 commit bd5681d

20 files changed

+2985
-3024
lines changed

backend/Core/Mixed.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public override string ToString()
2222
=> Format( "[{0}:{1}:{2}]", file, from.line, from.col );
2323
}
2424

25+
// all following classes do not have a SrcPos, only the Expr have
26+
2527
public class Accessor
2628
{
2729
public enum Kind

backend/Core/Typespec.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ protected string TargetGen()
4949
protected string PointerizeName(string leftOfName, string name = "" )
5050
{
5151
name = (" " + name).TrimEnd(); // empty name will result in empty string
52-
//string leftOfName = TargetGen();
5352

5453
if( ptrs == null || ptrs.IsEmpty() )
5554
return leftOfName + name;
@@ -122,7 +121,8 @@ public override string GenType()
122121
// c++:
123122
// named: void (*fun)(int,float)
124123
// unnamed: void (*)(int, float)
125-
// In here the Template are Args and in the Parens are Params
124+
// In here the Template are Args and in the Parens are Params,
125+
// this means the Template part is not visible in the resulting type of the function pointer
126126
public class TypespecFunc : Typespec
127127
{
128128
public List<Param> paras;

backend/Grammar/Generated/Myll/MyllLexer.cs

Lines changed: 953 additions & 980 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)