Giter Club home page Giter Club logo

Comments (5)

luizperes avatar luizperes commented on September 4, 2024 1

Instr sounds cool to me, such as llvm do

from brain.

ryukinix avatar ryukinix commented on September 4, 2024

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.

haskellcamargo avatar haskellcamargo commented on September 4, 2024

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.

ryukinix avatar ryukinix commented on September 4, 2024

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.

ryukinix avatar ryukinix commented on September 4, 2024

If is a common jargon on LLVM, I'm ok with it.

from brain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.