summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-17Convert from `in` to `:`.Ori Bernstein
The winds of change are a-blowin.
2017-07-17Start migrating code to use `for x : iterable`.Ori Bernstein
`in` is too good of a variable name to waste on a loop iterator specifier.
2017-07-16Byref should return a refiter.Ori Bernstein
Oops.
2017-07-15Remove obsolete options.Ori Bernstein
2017-07-15Wrap overlong line.Ori Bernstein
2017-07-15Remove unused extern var.Ori Bernstein
2017-07-15Inline remapping function.Ori Bernstein
Easier to read, clearer what's going on.
2017-07-15Use type hashing instead of string hasing in tyenv.Ori Bernstein
Set the stage for stricter env lookups.
2017-07-15Type binding refactoring now compiles.Ori Bernstein
Still a bit sloppy on a few things, needs some dedup work, but it's working.
2017-07-13Fix missed option conversion.Ori Bernstein
2017-07-12Add support for -O in 6m.Ori Bernstein
First step to not polluting source dirs.
2017-07-10Remove unused enum.Ori Bernstein
2017-07-10Clean up conditions in trait satisfaction.Ori Bernstein
2017-07-09Remove stupid comments.Ori Bernstein
2017-07-09Mark things as static.Ori Bernstein
2017-07-09Clean up some indentation.Ori Bernstein
2017-07-09Inferstate is global.Ori Bernstein
Fuck it, might as well treat it that way.
2017-07-09Style(9)-ify.Ori Bernstein
2017-07-09Don't allow hidden decls to clobber each other.Ori Bernstein
Hidden decls are still global, which means that if two modules define them, they are going to alias to the same symbol. This can lead to really painful to debug errors, since writes to one variable that seems to be file-local will cause some other variable in some other unrelated file to get clobbered. This turns the situation into a compile-time error.
2017-07-08Break up overly long statements.Ori Bernstein
A monster function declaration and if condition.
2017-07-08Allow matching of empty structs and arraysS. Gilles
2017-07-08Remap type params according to bound scope.Ori Bernstein
Getting closer to scoping type params properly. Still not fully there.
2017-07-08Factor out genericness checks.Ori Bernstein
It's the same on every use, might as well put it into the function.
2017-07-07Merge https://github.com/oridb/mcOri Bernstein
2017-07-07Use the correct syscall for kill on OpenBSDCarlin Bingham
2017-07-06Don't lose the topmost stack frame in acid stack traces.Ori Bernstein
2017-07-06Cleaner/correcter version of the termination condition.Ori Bernstein
It isn't entirely equivalent, but the cases where it returns true should be the same. And it shouldn't return false early.
2017-07-06Cleaner version of the termination condition.Ori Bernstein
It isn't entirely equivalent, but the cases where it returns true should be the same.
2017-07-06Fix up the type equality checking.Ori Bernstein
2017-07-06Fix unused name in error message.Ori Bernstein
2017-07-06Remove double recursion.Ori Bernstein
2017-07-05Add some discipline to type bindings.Ori Bernstein
We actually now do it in terms of scopes. It's still hacky, but...
2017-07-04Simplify _start routinesMichael Forney
sys$__environment was unused since 94ee9832f5861c4d09afa12338720eb3a479c342. Delete it and count, which is no longer needed. Simplify _start routines since they no longer need to allocate space for the environment slice and populate it.
2017-07-04rt: Remove duplicate stack allocationMichael Forney
2017-07-03Function args should go into the block stab.Ori Bernstein
Now we get errors if a function body shadows its args.
2017-07-03Actually mark void arg lists as void.Ori Bernstein
2017-07-03Errors are conventionally lowercase.Ori Bernstein
2017-07-03Clean up formatting of error reporting.Ori Bernstein
2017-07-03Clean up indentation of comments.Ori Bernstein
2017-07-03Specialize impl declarations on impl type in addition to decl typeMichael Forney
This allows multiple specializations of a declarations with a concrete type, which can be selected with the new impl expression if it can't be deduced by its type alone. For example trait hasname @t = Name: byte[:] ;; impl hasname void = Name = "somename" ;; impl hasname bool = Name = "othername" ;; const boolname = impl(Name, void) To do this, pass the param type through to genericname and specializedcl. Since we now need the type parameter to look up trait decls, make sure n->expr.param gets the necessary treatment in typesub, specializenode, pickle, and unpickle. We also need to tag the param types for export.
2017-07-03Add impl(type, name) to retrieve a particular implementation of a trait declMichael Forney
This avoids having to create a temporary variable when you know what implementation your want for a generic constant or function with generic return value. Re-use the impl keyword for this expression to avoid invalidating existing programs.
2017-07-03Resolve trait decl types before fixing themMichael Forney
Otherwise, if the decl has a named type with parameters, it remains unresolved until tyfix. tyfix looks up the tid in tytab, finding the original definition of the named type, which may have different type parameter names than than used in the trait decl. Upon importing this trait from a use file and writing a new impl, we end up trying to resolve type parameters of the *definition* of the named type, rather than what is specified in the trait decl type. If both type parameters are the same, we don't notice a problem, but if they differ, we end up trying to serialize a Tyvar in genericname. tyvar has no idstr
2017-07-03Write trait IDs instead of indices in typickleMichael Forney
If trait prototypes are used and merged with the actual trait, there may be entries in the trait table which have an ID corresponding to some other entry. When pickling types, write the trait ID instead of the index since the trait definitions are written with their IDs. Otherwise, we may end up reading types referring to non-existent traits, resulting in an error like Unable to find trait for id 7 Also, only pickle traits whose index matches its ID to avoid duplicates.
2017-07-03Fix indentationMichael Forney
2017-06-30Support union constantsMichael Forney
2017-06-30TyposMichael Forney
2017-06-30Use switch statement in postcheckpassMichael Forney
We don't need to check for Nexpr since exprop asserts e->type == Nexpr.
2017-06-30Remove unused traitlist from Type structMichael Forney
2017-06-28Update ABI version.Ori Bernstein
2017-06-28Remove unused memb from Trait and rename funcs -> protoMichael Forney
These are prototype declarations that must be implemented by the impl (not necessarily functions), so proto seems like a better name.