Comments (5)
Instr
sounds cool to me, such as llvm do
from brain.
Hmm... this is bad, but easy to fix with a good editor. Statement means a instruction, expression however means a instruction and is signed to a value to be returned, is it? I mean.... I'm trying to figure out what is the problem. If is this and you want to change the name to describe all the operations correctly, you should list what are these classes that was described wrongly and fill on this issue.
But how about using a more generic name? Like Operation
or something else. That way would be OutputExpr
-> OutputOp
. But I'm not sure about that.
from brain.
We first need to list everything that should be renamed and why. The concepts of Statement
and Expression
differ from language to language and some languages have only one kind of node. In Quack, now, we have statements, expressions and also declarations. In Brain, actually, if nothing really returns and the things can be remapped to opcodes, I believe we have instructions (statements are, in general, a lot more complex), like Assembly. In Haskell, for example, we only have expressions and declarations (statements don't exist!). For Brain, the fact is: OutputExpr
is not an Expr
, but an instruction.
from brain.
I agree with Instruction
as replacement for the suffix Expression
, the only problem is that I did not find a good and short way to write Instruction
as I can find forExpression
or Statement
. I mean ... OutputExp
seems clearly what is, but OutputInstr
is good? Keeping in the long form OutputInstrunction
is to me too long if this matters - but this is only aesthetics, anyway.
from brain.
If is a common jargon on LLVM, I'm ok with it.
from brain.
Related Issues (20)
- Makefile rules build and install are mixed and confused HOT 27
- Create .deb package and a ubuntu ppa channel for Brain HOT 4
- Change Docker Directory HOT 1
- Benchmark HOT 5
- Nested if statements HOT 2
- Small mistake on AST Expr.h method HOT 1
- BreakExpr for nested stmts HOT 3
- Fix compiler warnings HOT 1
- Missing the 'armhfp' HOT 9
- Travis file bug HOT 4
- Makefile and bash scripts problems HOT 3
- Uninitialized flag HOT 8
- Segmentation fault! HOT 20
- Create a wiki to make the README.md small and cleaner HOT 3
- Implement linker for binaries
- Make tape cell size custom
- Infinite loop compiler
- Implement mov instruction '&'
- guys, are you still alive? the last commit happened in 2020 HOT 6
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 brain.