brownie's People
brownie's Issues
Broken compilation
./css_parser.v:172:28: error: unexpected argument, current function does not return anything
170 |
171 | fn (p &Parser) peek(num int) {
172 | return p.scanner.tokens[p.idx + num]
| ~~~~~~~~~~~~~
173 | }
174 |
./css_parser.v:176:28: error: unexpected argument, current function does not return anything
174 |
175 | fn (mut p Parser) next() {
176 | return p.scanner.tokens[p.idx++]
| ~~~~~~~~~
177 | }
178 |
./css_parser.v:180:9: error: assignment mismatch: 1 variable(s) but `next()` returns 0 value(s)
178 |
179 | fn (mut p Parser) get_value() Value {
180 | tok := p.next()
| ~~
181 | match tok.typ {
182 | .hex {
./css_parser.v:181:15: error: `tok` does not return a value
179 | fn (mut p Parser) get_value() Value {
180 | tok := p.next()
181 | match tok.typ {
| ~~~
182 | .hex {
183 | val := u32(strconv.common_parse_uint(tok.val, 16, 32, true, false) or { continue })
./css_parser.v:182:9: error: not an enum
180 | tok := p.next()
181 | match tok.typ {
182 | .hex {
| ~~~~
183 | val := u32(strconv.common_parse_uint(tok.val, 16, 32, true, false) or { continue })
184 | return gx.hex(int(val << 8) | 0xFF)
./css_parser.v:186:9: error: not an enum
184 | return gx.hex(int(val << 8) | 0xFF)
185 | }
186 | .dec {
| ~~~~
187 | mut val := Numerical{value: tok.val.f64()}
188 | next_tok := p.peek(1)
./css_parser.v:210:9: error: not an enum
208 | return val
209 | }
210 | .ident, .string {
| ~~~~~~
211 | return tok.val
212 | }
./css_parser.v:183:54: error: `tok` does not return a value
181 | match tok.typ {
182 | .hex {
183 | val := u32(strconv.common_parse_uint(tok.val, 16, 32, true, false) or { continue })
| ~~~
184 | return gx.hex(int(val << 8) | 0xFF)
185 | }
./css_parser.v:187:45: error: `tok` does not return a value
185 | }
186 | .dec {
187 | mut val := Numerical{value: tok.val.f64()}
| ~~~
188 | next_tok := p.peek(1)
189 | if next_tok == .unit {
./css_parser.v:188:22: error: assignment mismatch: 1 variable(s) but `peek()` returns 0 value(s)
186 | .dec {
187 | mut val := Numerical{value: tok.val.f64()}
188 | next_tok := p.peek(1)
| ~~
189 | if next_tok == .unit {
190 | match next_tok.val {
./css_parser.v:189:28: error: not an enum
187 | mut val := Numerical{value: tok.val.f64()}
188 | next_tok := p.peek(1)
189 | if next_tok == .unit {
| ~~~~~
190 | match next_tok.val {
191 | "em" {
./css_parser.v:190:32: error: `next_tok` does not return a value
188 | next_tok := p.peek(1)
189 | if next_tok == .unit {
190 | match next_tok.val {
| ~~~
191 | "em" {
192 | val.unit = .em
./css_parser.v:191:21: error: cannot match `void` with `string`
189 | if next_tok == .unit {
190 | match next_tok.val {
191 | "em" {
| ~~~~
192 | val.unit = .em
193 | }
./css_parser.v:194:21: error: cannot match `void` with `string`
192 | val.unit = .em
193 | }
194 | "px" {
| ~~~~
195 | val.unit = .px
196 | }
./css_parser.v:197:21: error: cannot match `void` with `string`
195 | val.unit = .px
196 | }
197 | "%" {
| ~~~
198 | val.unit = .percentage
199 | }
./css_parser.v:211:24: error: `tok` does not return a value
209 | }
210 | .ident, .string {
211 | return tok.val
| ~~~
212 | }
213 | else {
./css_parser.v:258:38: error: `p.peek(1)` does not return a value
256 | .colon {
257 | parsing_keys = false
258 | if p.peek(1).typ == .semicolon {
| ~~~
259 | value = p.get_value()
260 | } else {
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.