@windsor/parser

The purpose of this module is to take log files and turn them into a tree representation of code. For now this module is geared specifially to parse files that come out of @windsor/logger.

Usage no npm install needed!

<script type="module">
  import windsorParser from 'https://cdn.skypack.dev/@windsor/parser';
</script>

README

Parser

The purpose of this module is to take log files and turn them into a tree representation of code. For now this module is geared specifially to parse files that come out of @windsor/logger.

bufferIterator

This is a generator function which takes in a Buffer and consumes it one line at a time. The buffer is done when there are no more lines to consume

logIterator

This is a recursive generator function which takes in a bufferIterator and returns a tree that corresponds to the logFile pointed at by the buffer.