Author Topic: Name for all TI-8x languages  (Read 8238 times)

0 Members and 2 Guests are viewing this topic.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Name for all TI-8x languages
« on: October 04, 2016, 12:34:21 am »
Ayyyyeeee everybody, I'm back for a quick question!

So I have my code on GitHub for most of my calculator projects. I noticed that GitHub didn't automatically identify code written for the TI-84 calculator like it does for most languages. So, I forked the official GitHub source code and manually added an entry for .8xk and .8xp programs. Since it's based on file extension rather than syntax, that means that this one entry is for TI-BASIC, Axe, z80 assembly, etc all combined into one, rather than any specific language. But I need a single name for it as if it were one language.

Any ideas? Basically I need a name to describe all .8xk and .8xp programming languages. I'm currently leaning towards "TI PRGM", "TI Calc", "TI Code", or something similar ;)
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

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: Name for all TI-8x languages
« Reply #1 on: October 04, 2016, 05:05:42 am »
Perhaps you could make it guess the file type based on the content, that way you could differentiate between Axe, Asm and TI-Basic

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

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Name for all TI-8x languages
« Reply #2 on: October 04, 2016, 02:48:09 pm »
Ideally that's what I'd do, except making my own grammar and making it comply with GitHub's rules is more work than I'd like. Not to mention a language needs several hundred existing repositories before it can be officially added, and I'm not sure there would be enough if I split into sub-languages.


Edit: Plus the library GitHub uses can't parse binary files, only text, so reading the contents of .8xp files would be impossible.
« Last Edit: October 04, 2016, 10:23:24 pm by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
TI Programs on GitHub!!!
« Reply #3 on: November 07, 2016, 04:10:26 pm »
The pull request was merged! TI programs are now recognized on GitHub. Because GitHub's language recognition software doesn't recognize binary files, if you want the code to be recognized it has to be a text file with the extension ".8xp.txt"  ;)
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Name for all TI-8x languages
« Reply #4 on: November 10, 2016, 12:44:35 pm »
8xp isn't a binary file though technically. You should just update your gitattributes file to mark 8xp files as text files:
Code: [Select]
*.8xp diff
/e

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Name for all TI-8x languages
« Reply #5 on: November 17, 2016, 10:43:13 pm »
But that will only affect my repository, not everyone's unfortunately.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Name for all TI-8x languages
« Reply #6 on: November 20, 2016, 06:55:11 pm »
But that will only affect my repository, not everyone's unfortunately.
So everybody who wants to use the language highlighting can just add that to their repos as well.
/e

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Name for all TI-8x languages
« Reply #7 on: November 22, 2016, 01:24:17 pm »
Oh I see what you mean, I thought you meant that could be applied to Linguist to affect everyone's repositories universally. I'm hoping people will use something like SourceCoder to turn the code into regular text, then post that as '.8xp.txt' alongside the executables, but I guess we'll have to wait and see what comes of it.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.