vhdl_tb 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/compiler.rb +1 -3
  3. data/lib/lexer.rb +5 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b626c88aa4ea58350e4cf0177e7cf33a16b686d
4
- data.tar.gz: 56e9cf75401601badb8ab5e257014b812d391418
3
+ metadata.gz: cd1879cca3683122f2deaf4d3e42937f5a4fe870
4
+ data.tar.gz: 700d2f736b29de611e5b2834ea0e500e8e189a90
5
5
  SHA512:
6
- metadata.gz: bd2698bb1dcdb5177517fc9e9086ffad9e50a6662c21d13ebfc8d18a4d4e0c68716768038d4c3fa63bd996cc13e9aa393e158bfa6c87dbe427d9652079eb5293
7
- data.tar.gz: de2217a81eeeb61da846db943f60110e65b9d78d3dab952f0cb2f0492b2d9230bed9871536ba6a905d0de568dce638599dbb328866b5cf7a49d64d5a057ee674
6
+ metadata.gz: c131814294a059dbe6eb5eaf1a557be6a0326cbcf0fb81014e5c608feb2ed77fbb737cdbc085c331a85c164ab5ce6eeb6015b15f4eb7058e733cdcbf17ba0aea
7
+ data.tar.gz: 5f300c1af6f426f300d7a87478e44cf4de5d3daacef47df740628508a017c1fe92c2ccddb1d70ae5e04ac975ca97c4d2a90673d77dabe2102e7961d2bfe38ce4
data/lib/compiler.rb CHANGED
@@ -11,7 +11,7 @@ module VHDL_TB
11
11
 
12
12
  class Compiler
13
13
 
14
- VERSION = "0.6.4"
14
+ VERSION = "0.6.5"
15
15
 
16
16
  def initialize
17
17
  #puts __dir__
@@ -114,8 +114,6 @@ module VHDL_TB
114
114
  end
115
115
  end
116
116
 
117
-
118
-
119
117
  end
120
118
  end
121
119
 
data/lib/lexer.rb CHANGED
@@ -23,6 +23,7 @@ class Lexer < GenericLexer
23
23
 
24
24
  #punctuation
25
25
  token :vassign => /\:\=/
26
+ token :sassign => /\<\=/
26
27
  token :lparen => /\(/
27
28
  token :rparen => /\)/
28
29
  token :semicolon => /\;/
@@ -30,8 +31,12 @@ class Lexer < GenericLexer
30
31
  token :dot => /\./
31
32
  token :comma => /\,/
32
33
  token :rightarrow => /\=\>/
34
+ token :"-" => /\-/
35
+ token :"=" => /\=/
33
36
  #terminals
34
37
  token :id => /[a-zA-Z_][a-zA-Z0-9_]*/i
35
38
  token :int_lit => /[0-9]+/
39
+ token :char_lit => /'[a-zA-Z0-9_]*'/
40
+ token :str_lit => /\"(.*)\"/
36
41
  end
37
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vhdl_tb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Christophe Le Lann