Author Topic: Grammer 2-The APP  (Read 162449 times)

0 Members and 2 Guests are viewing this topic.

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 2-The APP
« Reply #195 on: January 17, 2012, 01:59:02 pm »
Actually, it doesn't use ending brackets o.o the following do nothing in Grammer (literally, they point to an RET when executed):
)}]
There are a bunch of other tokens, too, but I cannot list them all XD

That is also why the For( token has the '(' changed to a space (like on the TI-89). I am still thinking of removing the token hook (or just making it an option).

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #196 on: January 17, 2012, 03:02:45 pm »
I'd do second thing.
And I understand why you don't need need the curly brackets :)
And I would recommend to add version number being displayed :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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 2-The APP
« Reply #197 on: January 17, 2012, 03:07:46 pm »
Okay, I am preparing for an update to TICalc.org, so I will add that in when I rewrite the menu XD

EDIT: Okay, does this work?


EDIT2: This section stems from the feature requests thread after adding in some requests such as:
When using [ to store data to a location in RAM, you can now use º after a value to store it as a two-byte, little endian value. This wonderfully useful feature is a request from Yeong and it is one that I will love as a Grammer coder.
Also if you use [[ instead, all values will be stored as two-byte values in little endian style
Even more is that using [( will let you store a string of hexadecimal digits. If an odd number of digits is sent, a padding "0" will be tacked on to the end.
Finally for this command, the output now points to the data directly following.
Before I get to the next part, here are some examples:
Code: [Select]
A[0,0,1,2,3     ;this writes the bytes to A as normal
A[0,1,-1º,2,3   ;this stores the bytes to A, but -1 is stored as two bytes
A[[0,1,2,3      ;the bytes are stored as two bytes (little endian)
A[(EEFF0011     ;the hex is converted and stored (good for data)
A[5,6
[2,3            ;these are output directly after the 5 and 6

Indeed, there is a "next part." Users can now access var such as Strings and GDBs in a new way. by adding numbers to the end of the name, you can access, say, Str133. To access this, use the Str1 token followed by 33. This gives you access to Str1 to Str256 and likewise you can access GDBs, Pics, and other such OS vars. Note that Str10 and Str0 are the same thing, but Str0 is 1 byte smaller in a source.

A new feature is what actually motivated me to add that last one. OS strings can now be stored to with 2 options. By adding a ' at the end of the string name, an extra newline token will be added to the end. This is needed if you want to be able to read or use it as a Grammer string as Grammer strings use terminating bytes rather than a given size, like the OS.

So some examples of valid syntax include:
Code: [Select]
"Hello→Str33'
Text(0,0,Str33
A→Str213

I hope y'all have fun with the features!

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #198 on: January 18, 2012, 09:21:45 am »
Cool!
* Sorunome downloads!

I got a question to that stringy, would then also Str000 work?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Grammer 2-The APP
« Reply #199 on: January 18, 2012, 10:10:23 am »
Nice to see a new version. By the way, is there a readme floating about somewhere?

*edit* Speeling Fale x.x
« Last Edit: January 18, 2012, 10:11:07 am by Art_of_camelot »

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 2-The APP
« Reply #200 on: January 18, 2012, 11:46:56 am »
@Sorunome: Grammer will see that as Str1000, but only the LSB is used. so in hex, 1000=3E8h, so it uses E8h which is 232 in decimal. So Str000 is the same as Str232
@Art_of_camelot: I am working on an up to date readme, but what I have so far is included in this post.

@Alll: If anybody has a better way to organise the readme and make it more understandable, feel free to give ideas!


@Yeong: I remembered to save the list of Prefix bytes for different variable types, this time :)

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Grammer 2-The APP
« Reply #201 on: January 18, 2012, 08:59:50 pm »
Ok, thanks! =)
* Art_of_camelot is gonna start tinkering with Grammar. :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 2-The APP
« Reply #202 on: January 18, 2012, 09:07:11 pm »
Cool!
@Anybody that wants it:
The Grammer Feature Requests page currently has a version with the ln( command that lets you jump forward or backwards a given number of lines.

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 2-The APP
« Reply #203 on: January 29, 2012, 10:37:59 am »
Okay, news, good news and better news:
1) I started freeing up saveSScreen so that eventually folks can use that a an extra screen buffer. It is not used yet, but it will be eventually. This also limits label names to 10 bytes (actually, probably 30 ish)
2) I added an optional argument for Lbl that will let you search a label in a specific program. For example, Lbl "HELLO","EHI will search for the label HELLO in program HI.
3) I just started going through and removing unused code and I am surprised I was not assassinated by the programming gods o.o I cut out over 3000 bytes of code, so Grammer has over 6000 bytes of space left. Now I want to see what I can do about trig LUTs and whatnot...

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 2-The APP
« Reply #204 on: February 02, 2012, 11:41:31 pm »
Okay folks, I fixed up the line routine which has been a little buggy and I also modified the sine and cosine routine to be faster and more accurate. if you want it, I think it is a useful update :) also, I made this proggie (see the screenie).

EDIT: An added stat: The sine and cosine routines are twice as fast and it only used a few extra bytes :) It is about 3 times as fast as the original routine x.x


Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #205 on: February 03, 2012, 04:26:55 pm »
That is looking cool! Great work! :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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 2-The APP
« Reply #206 on: February 03, 2012, 05:26:41 pm »
I wish I was good with 3D stuff D: Somebody on TIBD had a great idea... That flingfisch might be interested in >: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 2-The APP
« Reply #207 on: February 06, 2012, 04:43:02 pm »
Okay, here is the next update :) There are a few new commands and updates including the ability for Text( to display 32-bit numbers, a token for binary input, and even better, conj( has finally been set in stone with this update. The syntax for conj( is:
conj(Note,Octave,Duration
Note is 0 to 11
Octave is 0 to 6
Duration is the number of 64th times to play. so to do a quarter note, use 16 (16/64 = 1/4)

With this, I have made a music player in Grammer that should be ready for a first release soon :)

Hopefully I didn't upload wrong files again >.>

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #208 on: February 06, 2012, 05:53:07 pm »
I'm glad that MuseInc helped you through it. :)
* TBO_Yeong downloads
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 2-The APP
« Reply #209 on: February 06, 2012, 07:13:09 pm »
Yes, thank you much :D