edn_turbo 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e0ee4c88910b841529aead1cb72598a52558bc5
4
- data.tar.gz: 36a8ab68264720ebe0e7c5ffb20cb802a3b0a2ca
3
+ metadata.gz: aa435bbcdadfbf654990bf8ee34e6830f5642d68
4
+ data.tar.gz: 590f17ada5e84d90550d9b99b7b5afb035b0384a
5
5
  SHA512:
6
- metadata.gz: b677553c38f822a5abcd4cb9601bd910f2246ec229b4c8bdecf9d47b5151ae000258fe4ef5e372901b1a54c8ee38c10ca785e0d234a6723bef3ef3fb7f2cb543
7
- data.tar.gz: 8f0972fe531fe771b924c453965bf45c91622232fdf85a236e8fb9f44cd53a188cb34c081bd2fc4ec46d920d1d3a8a61d393359ae84a5027750071a033805903
6
+ metadata.gz: 2be6b790ab0072934c329c81d5e02e479749697521d54b561ccccd3c005e3d855085bb4c8e74c194e09fc540161871b8a921c6c1e35ce50bb4888fb926116677
7
+ data.tar.gz: 7ecb72bba74f5e7016cad489e480aa74d496953d78218612de60d48ca6493a37fcbb8fc0e296a9fc6a1b9d84928fcb30fbd4f3293b89010783d8d41c31589f0f
data/.gitignore CHANGED
@@ -7,3 +7,6 @@ tmp/*
7
7
  *.gem
8
8
  *~
9
9
  .ruby-version
10
+ *.hpp
11
+ *.ipp
12
+ *.png
data/Rakefile CHANGED
@@ -34,6 +34,14 @@ file GEN_CC_PARSER_SRC_PATH => RAGEL_PARSER_SRC_PATH do
34
34
  end
35
35
  end
36
36
 
37
+ task :graph do
38
+ TMPFILE='/tmp/ragel_edn'
39
+ MACHINE='EDN_value'
40
+
41
+ # assumes graphviz is installed
42
+ sh "ragel -Vp -S #{MACHINE} -o #{TMPFILE} #{EXT_PATH}/#{RAGEL_PARSER_SRC} && dot -Tpng #{TMPFILE} -o #{MACHINE}.png"
43
+ end
44
+
37
45
  task :build => [:clean, :ragel, :compile, :chmod]
38
46
 
39
47
  # add dependency to test task
@@ -2,6 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  require 'edn'
5
+ require 'pp'
5
6
 
6
7
  if ARGV.size == 0
7
8
  $stderr.puts "no filename given"
@@ -25,3 +26,5 @@ rescue Exception => e
25
26
  $stderr.puts "Error reading file"
26
27
  abort
27
28
  end
29
+
30
+ pp doc_data