Replies: 4 comments 6 replies
-
I imagine the djot.js code would probably port over fairly comfortably. |
Beta Was this translation helpful? Give feedback.
-
Did that. It works now. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Is there any policy WRT dependencies for an implementation, e.g. when I do a Perl port will it be OK to rely on third party modules from CPAN? |
Beta Was this translation helpful? Give feedback.
-
To judge by the the JSON schema parsing position data (start/end position, line, column) are not required in the AST. Does this mean that implementations are not required to keep track of (all) of them? In Perl each string has a Going out of your way to keep track of line position throughout is a major slowdown and should probably at least be made optional — as in the parser is a Perl class instance which has a readonly Notably Perl doesn't have any match object but such info as the start/end pos of the match/captures has to be retrieved from a number of global variables which are overwritten as soon as you make another successful regex match. I once wrote a class which, if the constructor is called immediately after a successful regex match, collects and encapsulates the info from these various global variables into something resembling a Python match object, but it is not very efficient. Footnotes
|
Beta Was this translation helpful? Give feedback.
-
I'm thinking of trying a Perl implementation. Are there any general gotchas or requirements to be aware of?
Beta Was this translation helpful? Give feedback.
All reactions