Author Topic: Parsing files  (Read 4177 times)

0 Members and 1 Guest are viewing this topic.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Parsing files
« on: January 23, 2011, 03:56:01 pm »
How would one go about parsing a file in Axe? You'd clearly have to find the program's token in the VAT (Input?), but once you've found the pointer, how would you read the file itself? Would you simply treat it as a string and step through it or would you need to do something more difficult?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Parsing files
« Reply #1 on: January 23, 2011, 03:58:51 pm »
If by "file" you mean a program or appvar, then yes you can treat it as a string. Programs/appvars are pure data. What are you trying to do?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Parsing files
« Reply #2 on: January 23, 2011, 04:16:40 pm »
Malbolge interpreter  ;D
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Parsing files
« Reply #3 on: January 23, 2011, 04:22:45 pm »
Is anybody going to be able to actually write a program in Malbolge?
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Parsing files
« Reply #4 on: January 23, 2011, 04:23:21 pm »
If you want working code, then Malbolge is not for you  :P
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Parsing files
« Reply #5 on: January 23, 2011, 04:34:53 pm »
If you want working code, then Malbolge is not for you  :P
Yeah, Malbolge is one horribly painful programing language to write in.  Why just last week, I was trying to write an operating system in it. lol, imagine writing an operating system where the asm code was Malbolge.  That makes my head hurt just thinking about it.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Parsing files
« Reply #6 on: January 23, 2011, 04:38:05 pm »
If I get to it, I might decide to make it even harder to program in  >:D
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Parsing files
« Reply #7 on: January 23, 2011, 05:10:05 pm »
If I get to it, I might decide to make it even harder to program in  >:D
Is that even possible? Also, make sure that it has to be encrypted based on the hash of the programs variables 323 steps into the program.  If it doesn't do 323 steps, then they are modded. eg, if it only does 21 steps, then the 8th instruction is executed because 323 mod 21 = 8.  So The encryption is based around the number 8 somehow.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Parsing files
« Reply #8 on: January 23, 2011, 05:11:03 pm »
Well, the encryption is rather simple and computers can obviously program in it. It can be made harder.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ