mirror of
https://github.com/irmen/prog8.git
synced 2024-06-01 06:41:42 +00:00
update to Antlr 4.13.1
This commit is contained in:
parent
a1d0e5bb65
commit
00b0ec58b4
|
@ -1,13 +1,13 @@
|
||||||
<component name="libraryTable">
|
<component name="libraryTable">
|
||||||
<library name="antlr.antlr4" type="repository">
|
<library name="antlr.antlr4" type="repository">
|
||||||
<properties maven-id="org.antlr:antlr4:4.12.0">
|
<properties maven-id="org.antlr:antlr4:4.13.1">
|
||||||
<exclude>
|
<exclude>
|
||||||
<dependency maven-id="com.ibm.icu:icu4j" />
|
<dependency maven-id="com.ibm.icu:icu4j" />
|
||||||
</exclude>
|
</exclude>
|
||||||
</properties>
|
</properties>
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/antlr/antlr4/4.12.0/antlr4-4.12.0.jar!/" />
|
<root url="jar://$MAVEN_REPOSITORY$/org/antlr/antlr4/4.13.1/antlr4-4.13.1.jar!/" />
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/antlr/antlr4-runtime/4.12.0/antlr4-runtime-4.12.0.jar!/" />
|
<root url="jar://$MAVEN_REPOSITORY$/org/antlr/antlr4-runtime/4.13.1/antlr4-runtime-4.13.1.jar!/" />
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/antlr/antlr-runtime/3.5.3/antlr-runtime-3.5.3.jar!/" />
|
<root url="jar://$MAVEN_REPOSITORY$/org/antlr/antlr-runtime/3.5.3/antlr-runtime-3.5.3.jar!/" />
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/antlr/ST4/4.3.4/ST4-4.3.4.jar!/" />
|
<root url="jar://$MAVEN_REPOSITORY$/org/antlr/ST4/4.3.4/ST4-4.3.4.jar!/" />
|
||||||
<root url="jar://$MAVEN_REPOSITORY$/org/abego/treelayout/org.abego.treelayout.core/1.0.3/org.abego.treelayout.core-1.0.3.jar!/" />
|
<root url="jar://$MAVEN_REPOSITORY$/org/abego/treelayout/org.abego.treelayout.core/1.0.3/org.abego.treelayout.core-1.0.3.jar!/" />
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
<component name="Black">
|
||||||
|
<option name="sdkName" value="Python 3.11" />
|
||||||
|
</component>
|
||||||
<component name="FrameworkDetectionExcludesConfiguration">
|
<component name="FrameworkDetectionExcludesConfiguration">
|
||||||
<type id="Python" />
|
<type id="Python" />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -33,7 +33,7 @@ dependencies {
|
||||||
implementation project(':codeGenIntermediate')
|
implementation project(':codeGenIntermediate')
|
||||||
implementation project(':codeGenExperimental')
|
implementation project(':codeGenExperimental')
|
||||||
implementation project(':virtualmachine')
|
implementation project(':virtualmachine')
|
||||||
implementation "org.antlr:antlr4-runtime:4.12.0"
|
implementation "org.antlr:antlr4-runtime:4.13.1"
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
// implementation "org.jetbrains.kotlin:kotlin-reflect"
|
||||||
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.6'
|
implementation 'org.jetbrains.kotlinx:kotlinx-cli:0.3.6'
|
||||||
|
|
|
@ -24,7 +24,7 @@ compileTestKotlin {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':codeCore')
|
implementation project(':codeCore')
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||||
implementation "org.antlr:antlr4-runtime:4.12.0"
|
implementation "org.antlr:antlr4-runtime:4.13.1"
|
||||||
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
implementation "com.michael-bull.kotlin-result:kotlin-result-jvm:1.1.18"
|
||||||
implementation project(':parser')
|
implementation project(':parser')
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,3 +32,12 @@ there are also larger pieces of software written using Prog8. Here's a list.
|
||||||
`Streaming Music Demo <https://github.com/irmen/cx16musicdemo>`_
|
`Streaming Music Demo <https://github.com/irmen/cx16musicdemo>`_
|
||||||
Demoscene like "music demos" for the Commander X16.
|
Demoscene like "music demos" for the Commander X16.
|
||||||
They display graphics, animated song lyrics, and play a high quality sampled song streamed from disk.
|
They display graphics, animated song lyrics, and play a high quality sampled song streamed from disk.
|
||||||
|
|
||||||
|
|
||||||
|
Various things:
|
||||||
|
|
||||||
|
`GalaX16 and other programs <https://github.com/reltham/X16Prog8Code>`_
|
||||||
|
Beginnings of a Galaga game for the Commander X16.
|
||||||
|
|
||||||
|
`Prog8 code for ZSMkit <https://github.com/mooinglemur/zsmkit/tree/main/p8demo>`_
|
||||||
|
ZSMkit is an advanced music and sound effects engine for the Commander X16.
|
||||||
|
|
|
@ -65,8 +65,20 @@ main {
|
||||||
txt.print("\ndecoding all blocks...\n")
|
txt.print("\ndecoding all blocks...\n")
|
||||||
cbm.SETTIM(0,0,0)
|
cbm.SETTIM(0,0,0)
|
||||||
repeat num_adpcm_blocks {
|
repeat num_adpcm_blocks {
|
||||||
|
|
||||||
|
; If the IMA data is mono, an individual chunk of data begins with the following preamble:
|
||||||
|
; bytes 0-1: initial predictor (in little-endian format)
|
||||||
|
; byte 2: initial index
|
||||||
|
; byte 3: unknown, usually 0 and is probably reserved
|
||||||
|
; If the IMA data is stereo, a chunk begins with two preambles, one for the left audio channel and one for the right channel.
|
||||||
|
; (so we have 8 bytes of preamble).
|
||||||
|
; The remaining bytes in the chunk are the IMA nibbles. The first 4 bytes, or 8 nibbles,
|
||||||
|
; belong to the left channel and -if it's stereo- the next 4 bytes belong to the right channel.
|
||||||
|
|
||||||
|
; The code here assumes mono.
|
||||||
adpcm.init(peekw(nibblesptr), @(nibblesptr+2))
|
adpcm.init(peekw(nibblesptr), @(nibblesptr+2))
|
||||||
nibblesptr += 4
|
nibblesptr += 4
|
||||||
|
|
||||||
repeat 252 {
|
repeat 252 {
|
||||||
ubyte @zp nibble = @(nibblesptr)
|
ubyte @zp nibble = @(nibblesptr)
|
||||||
adpcm.decode_nibble(nibble & 15) ; first word
|
adpcm.decode_nibble(nibble & 15) ; first word
|
||||||
|
|
|
@ -10,8 +10,8 @@ java {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
antlr 'org.antlr:antlr4:4.12.0'
|
antlr 'org.antlr:antlr4:4.13.1'
|
||||||
implementation 'org.antlr:antlr4-runtime:4.12.0'
|
implementation 'org.antlr:antlr4-runtime:4.13.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations.all {
|
configurations.all {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user