You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For debugging. I wrote this one, which is pretty bad:
func log<T>(parser:Parser<T>.Function, message:String="")->Parser<T>.Function{return{println("parsing from \($0)\(message)")letresult=parser($0)println("got \(result)\(message)")return result
}}
This should actually append into a logging context which is only printed when parsing fails.
It should also indent, and print the grammar (although that’s difficult at best).
The text was updated successfully, but these errors were encountered:
For debugging. I wrote this one, which is pretty bad:
This should actually append into a logging context which is only printed when parsing fails.
It should also indent, and print the grammar (although that’s difficult at best).
The text was updated successfully, but these errors were encountered: