Comments (7)
What happens if you do (foo) as! ...
instead of foo() as! ...
from lensorcompilercollection.
5head, that works. So is this the way to cast function calls now? Doesn't look to bad tbh, but at least I didn't really find it idiomatic especially the case without the outside perens, where the vardecl is cast.
from lensorcompilercollection.
In general, a function call is (function ...args)
, like LISP. No parens for arguments are needed. And, the parens are just a paren expression, for grouping, so they are not always needed.
I'd agree there are still some edge cases I'm not happy with but I won't work on those until I get back onto Intercept itself (not LCC)
from lensorcompilercollection.
So maybe also label this with somekind of fix when somebody feels like it label? Or write it in todo
Would just be dumb if issues get rediscovered over and over again (I see myself doing that) and I don't want to search in closed issues for things that are potentially still issues
from lensorcompilercollection.
There is no issue here to fix. foo()
is not a function call, it's a function followed by a paren expression.
Due to deproceduring, this would actually be a function call with the first argument as an empty paren expression
from lensorcompilercollection.
from lensorcompilercollection.
It looks like a screenshot from one of the parser source files of the compiler, all of which I did not write and am not working on right now.
from lensorcompilercollection.
Related Issues (20)
- Return value of call can not be treated as lvalue HOT 2
- Scopes permit redefinition of build-in types HOT 2
- Clang doesnโt accept AT&T assembly without proper suffixes HOT 4
- README: dependencies issue with linux HOT 2
- SysV aggregates aren't handled properly HOT 1
- ISel table currently does not support two-address instructions properly. HOT 5
- MrMugame said this causes an ICE HOT 1
- ICE on, in my humble opinion, valid code HOT 4
- Diag doesn't print location if token is EOF HOT 1
- Scuffed error messages when forgetting a semicolon HOT 9
- If a compiler stages throws an error, the compiler just continues, causing a segfault.
- Sema fails to evaluate cast properly
- Scopes seem to be broken
- IR doesnt generate implicit return for void functions HOT 8
- Member access is not properly working
- Inverted check in Sema
- We should check for functions without a body HOT 5
- IRGen is not handling ifExpr with no else
- [Intercept] Reference parameters aren't working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lensorcompilercollection.