ether-code 0.4.2 → 0.4.3

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.
package/cli/ether.js CHANGED
@@ -6,7 +6,7 @@ const http = require('http')
6
6
  const { EtherCompiler } = require('./compiler')
7
7
  const { Watcher } = require('./watcher')
8
8
 
9
- const VERSION = '0.4.2'
9
+ const VERSION = '0.4.3'
10
10
 
11
11
  const COLORS = {
12
12
  reset: '\x1b[0m',
package/ether-parser.js CHANGED
@@ -81,7 +81,7 @@ class EtherParser {
81
81
  expect(type) {
82
82
  const token = this.current()
83
83
  if (!token || token.type !== type) {
84
- throw new Error(`Attendu ${type}, reçu ${token ? token.type : 'EOF'}`)
84
+ throw new Error(`Attendu ${type}, reçu ${token ? token.type : 'EOF'}`)
85
85
  }
86
86
  return this.advance()
87
87
  }
@@ -306,7 +306,14 @@ class EtherParser {
306
306
  break
307
307
  }
308
308
 
309
- if (token.type === TokenType.COLON) {
309
+ if (token.type === TokenType.DOUBLE_COLON) {
310
+ this.advance()
311
+ const pseudoName = this.current()
312
+ if (pseudoName && pseudoName.type === TokenType.IDENTIFIER) {
313
+ parts.push('::' + pseudoName.value)
314
+ this.advance()
315
+ }
316
+ } else if (token.type === TokenType.COLON) {
310
317
  this.advance()
311
318
  const next = this.current()
312
319
  if (next && next.type === TokenType.COLON) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ether-code",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Ether - Le langage intentionnel",
5
5
  "main": "cli/compiler.js",
6
6
  "bin": {