I need more help creating a custom file extention praser

2014-06-23
2014-06-23
  • I Dont Know

    I Dont Know - 2014-06-23

    This is the hunk I need help with (please don't ask what the MFPXI thing is...) here
    I need it to show syntax. The Mcmeta one is exactly like JSON. The MFPXMF Files have syntax like this:

    @ This is a comment
    @ The Original File Name
    originalName="Test"
    @ The resolution on the X axis
    resolutionX="100"
    @ The Y Axis
    resolutionY="100"
    @ Color Bit Depth
    colorBit="32"
    @ File Compression (zip, rar, lzma, or 7z)
    fileCompression="7z"
    @ Description
    @ "/n\" means "null" no space can be blank
    desc="/n\"
    @ Date and time last edited
    dateEdited={
    [/n\];
    [/n\];
    }
    @ The person (or people) who made it
    creator={
    [/n\];
    }
    

    The MFPXCC files have syntax like this:

    @ This is a comment
    @ Red, Blue, and Green value (0 to 255)
    redValue="255"
    blueValue="255"
    greenValue="255"
    @ Alpha value, FF is opaque, 00 is transparent.
    alphaValue="FF"
    @ The Color Codes with Alpha
    colorCodes={
    ['255'.'255'.'255'.'255'];
    [%~.'#FFFFFFFF'.~%];
    }
    @ NOTE "%~.'*TEXT HERE*'.~%" means "about"
    

    How do I do this?
    Or if you can, could you fix the code?

     
  • Loreia2

    Loreia2 - 2014-06-23

    Hi,

    regarding your last line, which code needs fixing?
    Regarding your actual problem, did you try to use UDL? Language / Define your language ...

    Documentation:
    http://udl20.weebly.com/

    Regards,
    Loreia

     
  • I Dont Know

    I Dont Know - 2014-06-23

    The XML code needs to be fixed.
    Yes, I did, right now I'm trying some things, but if you know, that will be great!