-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'ups/dev' into force-compile
- Loading branch information
Showing
50 changed files
with
723 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ | ||
macos-11, | ||
macos-12, | ||
ubuntu-20.04, | ||
windows-2022 | ||
] | ||
|
@@ -160,7 +160,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ | ||
macos-11, | ||
macos-12, | ||
ubuntu-20.04, | ||
windows-2022 | ||
] | ||
|
@@ -196,6 +196,14 @@ jobs: | |
repository: antlr/antlr-php-runtime | ||
path: runtime/PHP | ||
|
||
- name: Setup PHP 8.2 | ||
if: matrix.target == 'php' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
extensions: mbstring | ||
tools: composer | ||
|
||
- name: Install dependencies | ||
env: | ||
COMPOSER_CACHE_DIR: ${{ github.workspace }}/.cache | ||
|
@@ -263,14 +271,6 @@ jobs: | |
with: | ||
go-version: '^1.19' | ||
|
||
- name: Setup PHP 8.2 | ||
if: matrix.target == 'php' | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: '8.2' | ||
extensions: mbstring | ||
tools: composer | ||
|
||
- name: Setup Swift | ||
if: matrix.target == 'swift' | ||
uses: swift-actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
//go:build !antlr.nomutex | ||
// +build !antlr.nomutex | ||
|
||
package antlr | ||
|
||
import "sync" | ||
|
||
// Mutex is a simple mutex implementation which just delegates to sync.Mutex, it | ||
// is used to provide a mutex implementation for the antlr package, which users | ||
// can turn off with the build tag -tags antlr.nomutex | ||
type Mutex struct { | ||
mu sync.Mutex | ||
} | ||
|
||
func (m *Mutex) Lock() { | ||
m.mu.Lock() | ||
} | ||
|
||
func (m *Mutex) Unlock() { | ||
m.mu.Unlock() | ||
} | ||
|
||
type RWMutex struct { | ||
mu sync.RWMutex | ||
} | ||
|
||
func (m *RWMutex) Lock() { | ||
m.mu.Lock() | ||
} | ||
|
||
func (m *RWMutex) Unlock() { | ||
m.mu.Unlock() | ||
} | ||
|
||
func (m *RWMutex) RLock() { | ||
m.mu.RLock() | ||
} | ||
|
||
func (m *RWMutex) RUnlock() { | ||
m.mu.RUnlock() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// +build antlr.nomutex | ||
|
||
package antlr | ||
|
||
type Mutex struct{} | ||
|
||
func (m *Mutex) Lock() { | ||
// No-op | ||
} | ||
|
||
func (m *Mutex) Unlock() { | ||
// No-op | ||
} | ||
|
||
type RWMutex struct{} | ||
|
||
func (m *RWMutex) Lock() { | ||
// No-op | ||
} | ||
|
||
func (m *RWMutex) Unlock() { | ||
// No-op | ||
} | ||
|
||
func (m *RWMutex) RLock() { | ||
// No-op | ||
} | ||
|
||
func (m *RWMutex) RUnlock() { | ||
// No-op | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.