dyadic 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #------------------------------------------------------------------------------
  2. # $File: dyadic,v 1.7 2015/05/27 18:02:48 christos Exp $
  3. # Dyadic: file(1) magic for Dyalog APL.
  4. #
  5. # updated by Joerg Jenderek at Oct 2013
  6. # http://en.wikipedia.org/wiki/Dyalog_APL
  7. # http://www.dyalog.com/
  8. # .DXV Dyalog APL External Variable
  9. # .DIN Dyalog APL Input Table
  10. # .DOT Dyalog APL Output Table
  11. # .DFT Dyalog APL Format File
  12. 0 ubeshort&0xFF60 0xaa00
  13. # skip biblio.dbt
  14. >1 byte !4
  15. # real Dyalog APL have non zero version numbers like 7.3 or 13.4
  16. >>2 ubeshort >0x0000 Dyalog APL
  17. >>>1 byte 0x00 aplcore
  18. #>>>1 byte 0x00 incomplete workspace
  19. # *.DCF Dyalog APL Component File
  20. >>>1 byte 0x01 component file 32-bit non-journaled non-checksummed
  21. #>>>1 byte 0x01 component file
  22. >>>1 byte 0x02 external variable exclusive
  23. #>>>1 byte 0x02 external variable
  24. # *.DWS Dyalog APL Workspace
  25. >>>1 byte 0x03 workspace
  26. >>>>7 byte&0x28 0x00 32-bit
  27. >>>>7 byte&0x28 0x20 64-bit
  28. >>>>7 byte&0x0c 0x00 classic
  29. >>>>7 byte&0x0c 0x04 unicode
  30. >>>>7 byte&0x88 0x00 big-endian
  31. >>>>7 byte&0x88 0x80 little-endian
  32. >>>1 byte 0x06 external variable shared
  33. # *.DSE Dyalog APL Session , *.DLF Dyalog APL Session Log File
  34. >>>1 byte 0x07 session
  35. >>>1 byte 0x08 mapped file 32-bit
  36. >>>1 byte 0x09 component file 64-bit non-journaled non-checksummed
  37. >>>1 byte 0x0a mapped file 64-bit
  38. >>>1 byte 0x0b component file 32-bit level 1 journaled non-checksummed
  39. >>>1 byte 0x0c component file 64-bit level 1 journaled non-checksummed
  40. >>>1 byte 0x0d component file 32-bit level 1 journaled checksummed
  41. >>>1 byte 0x0e component file 64-bit level 1 journaled checksummed
  42. >>>1 byte 0x0f component file 32-bit level 2 journaled checksummed
  43. >>>1 byte 0x10 component file 64-bit level 2 journaled checksummed
  44. >>>1 byte 0x11 component file 32-bit level 3 journaled checksummed
  45. >>>1 byte 0x12 component file 64-bit level 3 journaled checksummed
  46. >>>1 byte 0x13 component file 32-bit non-journaled checksummed
  47. >>>1 byte 0x14 component file 64-bit non-journaled checksummed
  48. >>>1 byte 0x15 component file under construction
  49. >>>1 byte 0x16 DFS component file 64-bit level 1 journaled checksummed
  50. >>>1 byte 0x17 DFS component file 64-bit level 2 journaled checksummed
  51. >>>1 byte 0x18 DFS component file 64-bit level 3 journaled checksummed
  52. >>>1 byte 0x19 external workspace
  53. >>>1 byte 0x80 DDB
  54. >>>2 byte x version %d
  55. >>>3 byte x \b.%d
  56. #>>>2 byte x type %d
  57. #>>>3 byte x subtype %d
  58. # *.DXF Dyalog APL Transfer File
  59. 0 short 0x6060 Dyalog APL transfer