arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
695 stars 31 forks source link

[Helpers/xml] re-implement XML parsing #611

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

[Helpers/xml] re-implement XML parsing

This parseXMLNode supposedly "works", but we first have to define what this means: basically, what would an XML-parsing function normally yield? How are children/nodes/attributes supposed to fit in Arturo's value system: arrays, dictionaries, scalars, etc?

https://github.com/arturo-lang/arturo/blob/ce734e7a32c73173910cdf8f533f56be21febe3b/src/helpers/xml.nim#L25

#=======================================

when not defined(NOPARSERS):
    # TODO(Helpers/xml) re-implement XML parsing
    #  This `parseXMLNode` supposedly "works", but we first have to define what this means: basically, what would an XML-parsing function normally yield? How are children/nodes/attributes supposed to fit in Arturo's value system: arrays, dictionaries, scalars, etc?
    #  labels: helpers, library, enhancement, bug, open discussion
    proc parseXMLNode*(n: XmlNode, level: int = 0): Value =
        let items = toSeq(n.items)
        if items.len == 1 and items[0].kind == xnText:
ndex 11a085317..fca1b5ddf 100644
++ b/src/library/Arithmetic.nim

ebb2e54d71a5d4ec7b65d8e6271f97a072996cb5

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

Closing issue as stale.

stale[bot] commented 9 months ago

Closing issue as stale.

stale[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.