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.
- checksums.yaml +4 -4
- data/lib/compiler.rb +1 -3
- data/lib/lexer.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd1879cca3683122f2deaf4d3e42937f5a4fe870
|
4
|
+
data.tar.gz: 700d2f736b29de611e5b2834ea0e500e8e189a90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c131814294a059dbe6eb5eaf1a557be6a0326cbcf0fb81014e5c608feb2ed77fbb737cdbc085c331a85c164ab5ce6eeb6015b15f4eb7058e733cdcbf17ba0aea
|
7
|
+
data.tar.gz: 5f300c1af6f426f300d7a87478e44cf4de5d3daacef47df740628508a017c1fe92c2ccddb1d70ae5e04ac975ca97c4d2a90673d77dabe2102e7961d2bfe38ce4
|
data/lib/compiler.rb
CHANGED
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
|