Skip to content

Releases: PackageFactory/afx

Support Spreads in AFX

30 Oct 07:10
52e11d8
Compare
Choose a tag to compare

This changes the way props are returned, the props and spreads are now all returned as attributes-array of an afx-node. The attributes can be of type string, expression and spread the first two contain an identifier with the name of the prop. Spreads do not recieve an identifier but only the expression as payload.

Be tolerant towards empty strings that shall be parsed.

30 May 16:04
Compare
Choose a tag to compare
Merge pull request #9 from mficzel/task/avoidErrorsForEmptyAfxCode

TASK: Avoid errors if an empty string is parsed

Return NodeList instead of Node

30 May 14:35
Compare
Choose a tag to compare

The parser now returns a nodeList instead of a single node as result. This enables the parsing of multiple elements that are not encapsulated in a container.

Throw exceptions on parser errors

25 Apr 11:20
Compare
Choose a tag to compare

The parser behavior is not modified but in case of syntax-errors in the afx-code exceptions of type \PackageFactory\Afx\Exception are thrown.

Initial public release

13 Apr 12:21
Compare
Choose a tag to compare
Merge pull request #4 from mficzel/task/applyPSR2Rules

TASK: Apply PSR2 formatting rules