Omnimaga

Calculator Community => TI Calculators => Grammer => Topic started by: Yeong on April 03, 2012, 07:13:45 pm

Title: Grammer Tutorial
Post by: Yeong on April 03, 2012, 07:13:45 pm
I'm working on one right now. :D
I've done it until Chapter 3, so you can check the stuff here:
http://yeong.comli.com/index.html
(Temporary link until Juju fix his RAM issue :P)

Any comments? (Not about web designing since I suck at it :P)
Title: Re: Grammer Tutorial
Post by: DJ Omnimaga on April 04, 2012, 12:35:56 am
Nice. Are you planning to put a copy in the articles section? It might be a good idea in case your host goes down eventually, plus it would be directly on Omni. :) http://www.omnimaga.org/index.php?action=articles;cat=11
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 04, 2012, 11:00:28 am
Hmm, I have only checked as far as chapter one so far, but nice o.o
EDIT: Hmm, I think you could mention why not updating after everything you draw is a good thing (like it lets you draw everything first and makes graphics faster). Otherwise, I lost the game.

EDIT2: And also, I like the coloring, it helps separate different ideas nicely :) (It isn't just a block of text)
Title: Re: Grammer Tutorial
Post by: Yeong on April 04, 2012, 03:30:06 pm
OK. I'll make sure I mention that. :D
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 04, 2012, 03:35:33 pm
Cool :D Do you have any plans for the next section?
Title: Re: Grammer Tutorial
Post by: Yeong on April 04, 2012, 04:08:20 pm
Yes.
Quote from: My Website
Click the button below to proceed to Chapter 3: Basic Math and Variables.
That's that chapter I'm planning to write. :3
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 04, 2012, 04:38:56 pm
Oh right XD Cool, I can't wait to see how you handle it :D
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 04, 2012, 04:38:57 pm
Oh right XD Cool, I can't wait to see how you handle it :D
Title: Re: Grammer Tutorial
Post by: Yeong on April 04, 2012, 07:15:52 pm
Chapter 3 is uploaded. :D
Oh god. It's getting longer and longer... O.o
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 05, 2012, 07:30:48 am
Aww, none of the complicated things like storing to multiple variables or using lowercase instead of primes? :P Nice job, you are explaining it quite well so far o.o
Title: Re: Grammer Tutorial
Post by: Yeong on April 05, 2012, 12:50:43 pm
Aww, none of the complicated things like storing to multiple variables or using lowercase instead of primes? :P Nice job, you are explaining it quite well so far o.o

Hence, the chapter named "BASIC math and variables" :P

Complicated stuff comes later. ;D
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 05, 2012, 12:54:53 pm
Yeah, good job so far with not destroying the users minds before getting to the scary fun stuff XD
Title: Re: Grammer Tutorial
Post by: Yeong on April 05, 2012, 12:56:40 pm
and I thought the temp memory stuff was kinda scary to users. :D
Now for loops and conditonals... :D

EDIT: Haven't uploaded yet but I fixed some thing. I mentioned that the Grammer does not follow the order of operations.
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 05, 2012, 02:37:33 pm
Yeah, that stuff is going to be really scary x.x You might want to include using ! before a Repeat and While as a way to negate and stuff. Also, the way Grammer parses conditions is that it executes all the way to a newline token, so if you use : to separate lines and math in a condition, it will work out. For example:

Code: [Select]
Repeat 3*A:+7:*3:-37
<<stuff>>
End
That line parses to:
(((3*A)+7)*3)-37)

Title: Re: Grammer Tutorial
Post by: Yeong on April 05, 2012, 03:07:47 pm
Ah. That's nice to know. :D
Also, I'm including ! part before any If/Then and loops.
Title: Re: Grammer Tutorial
Post by: Yeong on April 05, 2012, 03:42:14 pm
since juju's server works now, this is an alternate address:
http://www.yeong.57o9.org
Title: Re: Grammer Tutorial
Post by: Yeong on April 06, 2012, 01:25:32 pm
Chapter 4 added. I decided to separate Loops and Logic since the page was getting big X.x
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 06, 2012, 02:42:08 pm
Hmm, AND and OR (and even XOR) are math operations... So what they really do is perform Bit-Wise logic. For example, if you do "3 and 6", it will return 2. The reason is if you AND these two:
0000000000000011 (this is 3 in binary)
0000000000000110 (this is 6 in binary)
0000000000000010 (you get this which is 2)

The result has a 1 bit only if both bits from the inputs are 1. So, if you did this:
Code: [Select]
If A=3: and B=6
You would be doing this:
Code: [Select]
If (A=3) and (B=6)
However, doing this will result in 0 no matter what:
Code: [Select]
If A=6 and B=3
Lets say B=3 and A=6. The reason is that if you break it down:
A=6 and B=3
A=6 and 1
A=0
0

See the issue? 6 and 1 returns 0 :/
Title: Re: Grammer Tutorial
Post by: Yeong on April 14, 2012, 03:50:44 pm
Ok, xeda. I'll try to implement that.
Ch 5 coming out tomorrow. :D
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 16, 2012, 10:33:40 am
I still see:
Quote
Conditon1 AND Conditon2: Returns "true" only if two conditons are true.
Conditon1 OR Condition2 : Returns "true" as long as at least one of the conditions is true.
Those aren't correct D:
Title: Re: Grammer Tutorial
Post by: Yeong on April 16, 2012, 05:10:27 pm
Oh. I have it fixed. I just haven't uploaded yet. :P
I think I'll upload them all at once once I reach like ch.10.
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 16, 2012, 08:58:03 pm
Ah, okay XD Can't wait :D When I update the command list, I am probably going to link to your tutorial :)
Title: Re: Grammer Tutorial
Post by: Yeong on April 16, 2012, 09:18:30 pm
oh wait. I just correctly understood your bitwise logic. XP
Time to fix it again.
Also, Grammer does have XOR, right?
Title: Re: Grammer Tutorial
Post by: Xeda112358 on April 16, 2012, 09:31:06 pm
Yes, it is the xor token :)
Title: Re: Grammer Tutorial
Post by: Yeong on April 16, 2012, 09:37:58 pm
now that means that I have to add XOR command.... XP