• Grammer Feature Requests 5 1
Currently:  

Author Topic: Grammer Feature Requests  (Read 46801 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Feature Requests
« Reply #15 on: January 17, 2012, 10:29:22 pm »
iPart is only good for storing few datas. The code gets ugly once I start to type something like this...

C[0,1,3,ㅠFF,ㅠ01,4,2,ㅠEE,ㅠ78,3,1,.....
Sig wipe!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #16 on: January 18, 2012, 01:03:41 am »
Okay, two things:
1) Thanks for voting on the poll! It so far looks mixed. I plan in any event to add text compression to Grammer 3 :)
2) I have a few new updates based on this thread-- I added yeong's request (including a request via IRC) and I added in more variable support (such as Str133, GDB67, et cetera). On top of that, I added support for storing Grammer strings to OS strings.

See EDIT2 on this post for details and the download is on that post, too :)

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Grammer Feature Requests
« Reply #17 on: January 18, 2012, 05:14:12 am »
I think text compression is a great idea. It'll help out for projects that have large chunks of text. What about compressing graphical data? :D

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #18 on: January 18, 2012, 07:54:47 am »
That could be tough and it depends .__. The text compressor only works with 46 chars and works using some stats on the most common appearances of letters. Of course, making a general routine that scans any data would probably be neat, too :)

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Grammer Feature Requests
« Reply #19 on: January 18, 2012, 10:06:13 am »
Ah, ok. Also, didn't realize the compressor was for short texts ( I probably overlooked it) x.x. And yea, a general routine would be sweet. :D

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #20 on: January 18, 2012, 11:28:09 am »
Oh, I meant only 46 chars can be used. The text can be any size (as long as it and its compressed form fit in RAM).
The characters include punctuation, uppercase letters, numbers, and a few other chars.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Feature Requests
« Reply #21 on: January 18, 2012, 07:51:28 pm »
can you add a "Line Jumping" feature?
like if you put ln(+3, it jumps to 3 lines after (maybe line must be defined by newline token) and ln(-3 jumps back 3 lines and stuff.
It'll be cool. :D

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #22 on: January 18, 2012, 08:29:12 pm »
Okay, wonderful idea and here is your update! As a note, ln(0 will jump forward 65536 lines. Here are some examples:
Code: [Select]
ln(3                 ;jumps to the line with "Yeah!
"Hi
"Whaddup?
"Yeah!             ;The code jumps here
Code: [Select]
Lbl "ScrollMenu→Z
prgmZ            ;StartOfLoop
DispGraph
If getKey(15
ln(-3              ;jumps back to prgmZ

Again, thanks for the token idea, especially! I made a version for ReCode that used other tokens (and was conditional) and I have wanted to add it to Grammer as well, very much. Thanks!  :thumbsup:

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Grammer Feature Requests
« Reply #23 on: January 18, 2012, 08:57:56 pm »
@Xeda: Ah ok, it's just a limited character set. :) That's fine then. =D

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Feature Requests
« Reply #24 on: January 19, 2012, 06:58:15 pm »
New token hook thingy looks great. :D
However, it kinda bothers me that I can't put "[" in the string anymore. D: (If I do, the code doesn't work properly D: )
Is there a way to disable the token hook at the string part?
Sig wipe!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #25 on: January 19, 2012, 07:35:56 pm »
I think in the next update, I will just remove the hook for { and [. And why can't you put a "[" in a string? It should still show up as [ when it is displayed...

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Feature Requests
« Reply #26 on: January 19, 2012, 10:03:14 pm »
I don't know what's happening, but it just doesn't work D:
It just quits Grammer X.x
Sig wipe!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Feature Requests
« Reply #27 on: January 19, 2012, 10:15:09 pm »
Oh, jeez, nevermind, I know what it is .__. Here is the fix. I noticed it yesterday when I was making the flame animation and I fixed it and did not even think to upload the fix here. For ASM programmers, I originally needed an extra POP to exit the routine, but then I rearranged it to not need that, but I left the POP in.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Feature Requests
« Reply #28 on: January 31, 2012, 06:54:57 pm »
Yet Another Feature Requests/Maybe Question

1)How do I copy picture to memory address? (I'm pretty sure it can be done with Fill( command but just making sure.)

2)I think I read something about 32 bit number stuff. Are you still planning to implement it?
Sig wipe!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Grammer Feature Requests
« Reply #29 on: January 31, 2012, 07:00:27 pm »
EDIT: I blame chrome >.<
« Last Edit: January 31, 2012, 07:00:48 pm by Builderboy »