ljcooke / nodaire Goto Github PK
View Code? Open in Web Editor NEWRuby parsers for text file formats.
Home Page: https://ljcooke.github.io/nodaire/
License: MIT License
Ruby parsers for text file formats.
Home Page: https://ljcooke.github.io/nodaire/
License: MIT License
Add Tablatal.generate
to generate a Tablatal document row by row, similar to CSV.generate
.
Example:
CATEGORY
KEY :
Also recognise any whitespace characters around the :
instead of checking for spaces.
Treat tabs as a ParserError.
Currently Nodaire::Indental::Lexer
checks the indent level by counting the size of /^\s*/
(matching any whitespace instead of spaces only).
Comment out everything in .rubocop_todo.yml
, then run bundle exec rubocop
.
Issues:
Metrics/MethodLength: Method has too many lines. [13/10]
Metrics/AbcSize: Assignment Branch Condition size for parse_key_value! is too high. [16.09/15]
Metrics/AbcSize: Assignment Branch Condition size for parse_list! is too high. [16.43/15]
Metrics/AbcSize: Assignment Branch Condition size for parse_list_item! is too high. [18.28/15]
Each page in the documentation has an "Index" link at the top. This leads to a "Page not found" error at: https://slisne.github.io/nodaire/_index.html
The file exists in the repo (in the gh-pages
branch). Is this something to do with GitHub Pages treating it like a Jekyll site?
Blocked by #3.
Spaces in keys will need to be handled. Maybe convert them to underscores?
So far Tablatal has to_csv
and Indental has to_json
.
Tablatal could have a to_json
method as well, returning a JSON array. For example:
JSON.generate(to_a)
Add Indental.generate
to generate an Indental document from a hash, similar to JSON.generate
.
Blocked by #3.
Blocked by #3.
Add a #pluck
method to Nodaire::Tablatal.
Example:
doc.pluck('NAME')
This would be equivalent to:
doc.map { |row| row['NAME'] }
Comment out everything in .rubocop_todo.yml
, then run bundle exec rubocop
.
Issues:
Metrics/AbcSize: Assignment Branch Condition size for make_keys is too high. [19.21/15]
Metrics/MethodLength: Method has too many lines. [16/10]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.