dyadic 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #------------------------------------------------------------------------------
  2. # $File: dyadic,v 1.5 2010/09/20 18:55:20 rrt 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 0x80 DDB
  49. >>>2 byte x version %d
  50. >>>3 byte x \b.%d
  51. #>>>2 byte x type %d
  52. #>>>3 byte x subtype %d
  53. # *.DXF Dyalog APL Transfer File
  54. 0 short 0x6060 Dyalog APL transfer