[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a command that shows the C-code the interpreter creates?
From: |
GoSim |
Subject: |
Re: Is there a command that shows the C-code the interpreter creates? |
Date: |
Tue, 16 Apr 2019 17:38:39 -0500 (CDT) |
apjanke-floss wrote
> On 4/16/19 4:56 PM, GoSim wrote:
>> Ok, I misunderstood, Bison doesn't parse the m-code but creates a parser.
>> So
>> Bison is a general interpreter. And the parser creates a parse tree.
>
> Pretty much. Bison generates a C program which is a parser, and the
> execution of that parser procedurally processes the parse tree, though
> the parse tree itself may not be represented explicitly in a data
> structure.
>
>> And you run this parser on every line in the m-file. I thought the m-code
>> was converted to C-code somewhere...
>
> Nope.
>
>> How does your parser know if it is a int or double?
>
> All numerics in Octave are doubles unless you explicitly convert them to
> ints using int32() or similar conversion functions. All numeric literals
> in Octave produce doubles. So if you see a number in Octave code, it's a
> double.
>
> Cheers,
> Andrew
How does your parser know if it is a string or int or matrix or imaginary
number?
thanks for clearing stuff up btw.
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
- Re: Is there a command that shows the C-code the interpreter creates?, (continued)
Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/16
Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/16
- Re: Is there a command that shows the C-code the interpreter creates?, Ian McCallion, 2019/04/16
- Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/16
- Re: Is there a command that shows the C-code the interpreter creates?, Mike Miller, 2019/04/16
- Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/16
- Re: Is there a command that shows the C-code the interpreter creates?, Andrew Janke, 2019/04/16
- Re: Is there a command that shows the C-code the interpreter creates?,
GoSim <=
- Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/16
- Re: Is there a command that shows the C-code the interpreter creates?, Andrew Janke, 2019/04/16
- Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/17
- Re: Is there a command that shows the C-code the interpreter creates?, Nicholas Jankowski, 2019/04/17
- Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/17
- Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/17
- Re: Is there a command that shows the C-code the interpreter creates?, Nicholas Jankowski, 2019/04/17
- Re: Is there a command that shows the C-code the interpreter creates?, Andrew Janke, 2019/04/17
- Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/17
Re: Is there a command that shows the C-code the interpreter creates?, GoSim, 2019/04/17