Author Topic: Grammer Q&A  (Read 19387 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4597
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Q&A
« Reply #15 on: November 15, 2011, 12:54:44 pm »
The app version has more features and lets you run the programs from archive and whatnot. So it is more crash resistant XD

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: Grammer Q&A
« Reply #16 on: November 15, 2011, 12:55:59 pm »
Ahh, okay. I shall give it a try soon, then. :)

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Grammer Q&A
« Reply #17 on: November 15, 2011, 12:58:40 pm »
I just took a look through the documentation and how do I get the user input of a string or a number?

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4597
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Q&A
« Reply #18 on: November 15, 2011, 01:01:33 pm »
With the latest version, you would use Input →A to let the user input a string. You can use expr( to convert the string to a value (by executing the string as code).
So for example:
Code: [Select]
Text(0,0,"Name
DispGraph
Input→A
or:
Code: [Select]
Text(0,0,"GUESS
DispGraph
expr(Input →A

The input routine isn't great, but it is rather adequate :)

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Q&A
« Reply #19 on: November 29, 2011, 06:56:39 pm »
can you write down all the prefixes? so far, all I know is that e is program, and v is appvar.
Sig wipe!

Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: Grammer Q&A
« Reply #20 on: November 29, 2011, 07:06:33 pm »
@Xeda: with those commands, it would be possible to create an interactive grammar interpreter (although impractical), right?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4597
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Q&A
« Reply #21 on: November 29, 2011, 08:13:46 pm »
@Yeong: I should remember to include the chart in the readme... For now:
Code: [Select]
D=Str
E=Program
F=Protected Program
G=Picture
H=GDB
U=Appvar
V=Temp Program
W=Group           ;be careful with this one!
@C0deH4cker: I've no clue what that means, but Grammer is Turing Complete (I believe) and so can emulate other Turing machines, so you can create a new interpreter from Grammer :)

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Q&A
« Reply #22 on: November 29, 2011, 08:14:49 pm »
wait....I could do group? and Pic? O.o
:banghead:
I feel like Full'd (no pun intended)
Sig wipe!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4597
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Q&A
« Reply #23 on: November 29, 2011, 08:15:47 pm »
No, you should not write to a group O.O Only read from it unless you know exactly what you are doing! Creating a group could cause some serious issues...

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Q&A
« Reply #24 on: December 28, 2011, 12:16:46 pm »
yet another question:
Is there a way to "jump" to another Grammer program?
(Except for the not putting "stop" in end of the program and let it "naturally" run the program right below it. :P )
Sig wipe!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4597
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Q&A
« Reply #25 on: December 28, 2011, 07:08:40 pm »
Yes, actually. All you need is a pointer to the program and then you use either Goto or prgm like you would a label. So to jump to prgmSubEnd:
Code: [Select]
Goto Get("ESubEnd

This is actually the main reason for why the program header starts with a decimal as that line will be ignored when calling the program.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Q&A
« Reply #26 on: December 29, 2011, 12:35:17 pm »
I actually found the other way to deal with it...>:D (Check Grammer2 APP thread)
but there was an easy way O.O
Sig wipe!

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Q&A
« Reply #27 on: December 29, 2011, 07:18:17 pm »
Feature request: is there a way to "include" the TI-BASIC command? I know that Grammer 1 let me do so, but I don't know about the Grammer 2.
Sig wipe!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4597
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Q&A
« Reply #28 on: December 29, 2011, 07:27:11 pm »
Hmm, I am not sure what you mean... I think you mean allow BASIC and Grammer to be mixed? I could try to whip something up for you :) You will need to have a program in RAM to do it, but yes.

Also, I will make a Feature Request topic as you requested on IRC :P

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Q&A
« Reply #29 on: December 29, 2011, 07:28:01 pm »
I think you mean allow BASIC and Grammer to be mixed?
That's exactly what I meant. :D

Also, you got 2k posts XD
Sig wipe!