c_lexer 2.5.1.0.pre1 → 2.5.1.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/appveyor.yml +25 -0
- data/ext/lexer/lexer.h +2 -2
- data/lib/c_lexer/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d69239c3a8e5a8d86fab7c3063f55851e09e5f6e2833f3e1ffb6d16e26fea0b6
|
4
|
+
data.tar.gz: dd48e4a13c3c5a680d66ff07c216c4da3cfa25cc87045c0ff2e28cc91776bb22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34621afed4269fc3085add014b888c6a73638e3892cf3ce450c7320f1547fc6478b1fec80d7d490d90510c5d480b481c14d31fa53c69bb90b1257f170c1abc1e
|
7
|
+
data.tar.gz: 966eb6204c101554301a60a36105fc3413226a2332a233d694fd0f340b40fa5d0bc137782ca97312046ae15911570c15e5b800d685642e75cfaa3df63748f574
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# CLexer
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/opal/c_lexer.svg?branch=master)](https://travis-ci.org/opal/c_lexer)
|
4
|
+
[![Build status](https://ci.appveyor.com/api/projects/status/lqw4pid44jvfbnl3/branch/master?svg=true)](https://ci.appveyor.com/project/iliabylich/c-lexer/branch/master)
|
4
5
|
|
5
6
|
A C port of the whitequark/parser's lexer.
|
6
7
|
|
data/appveyor.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
version: 1.0.{build}-{branch}
|
2
|
+
|
3
|
+
environment:
|
4
|
+
matrix:
|
5
|
+
- ruby_version: 25-x64
|
6
|
+
|
7
|
+
|
8
|
+
init:
|
9
|
+
- set PATH=C:\ruby%ruby_version%\bin;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Program Files\7-Zip;C:\Program Files\AppVeyor\BuildAgent;C:\Program Files\Git\cmd;C:\Windows\system32
|
10
|
+
|
11
|
+
install:
|
12
|
+
# Install ragel
|
13
|
+
- bash -lc "pacman -S --noconfirm mingw-w64-x86_64-ragel"
|
14
|
+
- git submodule update --init
|
15
|
+
|
16
|
+
- ruby -v
|
17
|
+
- gem -v
|
18
|
+
- bundle -v
|
19
|
+
|
20
|
+
- bundle install --retry 3
|
21
|
+
|
22
|
+
build: off
|
23
|
+
|
24
|
+
test_script:
|
25
|
+
- bundle exec rake -rdevkit test -- --use-system-libraries
|
data/ext/lexer/lexer.h
CHANGED
@@ -6,7 +6,7 @@ typedef struct lexer_state lexer_state;
|
|
6
6
|
define_stack_type(lit_stack, literal, {0});
|
7
7
|
|
8
8
|
struct lexer_state {
|
9
|
-
|
9
|
+
int cs; /* DFA state */
|
10
10
|
long p; /* stream position */
|
11
11
|
long pe; /* end-of-stream position */
|
12
12
|
|
@@ -49,7 +49,7 @@ struct lexer_state {
|
|
49
49
|
|
50
50
|
VALUE escape;
|
51
51
|
|
52
|
-
|
52
|
+
int cs_before_block_comment;
|
53
53
|
};
|
54
54
|
|
55
55
|
static void lexer_mark(void*);
|
data/lib/c_lexer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: c_lexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.1.0.
|
4
|
+
version: 2.5.1.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Bylich
|
@@ -151,6 +151,7 @@ files:
|
|
151
151
|
- Gemfile.lock
|
152
152
|
- README.md
|
153
153
|
- Rakefile
|
154
|
+
- appveyor.yml
|
154
155
|
- bin/c-ruby-parse
|
155
156
|
- bin/console
|
156
157
|
- bin/setup
|