Skip to content

Commit

Permalink
Update for Csound 6.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nwhetsell committed May 11, 2018
1 parent 5ec2eb9 commit 9f33ecb
Showing 1 changed file with 60 additions and 52 deletions.
112 changes: 60 additions & 52 deletions pygments/lexers/_csound_builtins.py
Expand Up @@ -3,27 +3,27 @@
pygments.lexers._csound_builtins
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2018 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

# Opcodes in Csound 6.10.0 at commit 71eedf01f9c8db6c9fbfdd59888eb3d5ef52f7a0 using
# python -c "
# import re, subprocess
# output = subprocess.Popen(['csound', '--list-opcodes0'], stderr=subprocess.PIPE).communicate()[1]
# opcodes = output[re.search(r'^\d+ opcodes$', output, re.M).end():re.search(r'^Usage:', output, re.M).start()].split()
# output = subprocess.Popen(['csound', '--list-opcodes2'], stderr=subprocess.PIPE).communicate()[1]
# all_opcodes = output[re.search(r'^\d+ opcodes$', output, re.M).end():re.search(r'^Usage:', output, re.M).start()].split()
# deprecated_opcodes = [opcode for opcode in all_opcodes if opcode not in opcodes]
# print '''OPCODES = set(\'''
# {}
# \'''.split())
#
# DEPRECATED_OPCODES = set(\'''
# {}
# \'''.split())
# '''.format('\n'.join(opcodes), '\n'.join(deprecated_opcodes))
# "
# Opcodes in Csound 6.11.0 at commit 25b2e8e53bc924526eaad34e0768a5e866638e94 using
python -c "
import re, subprocess
output = subprocess.Popen(['csound', '--list-opcodes0'], stderr=subprocess.PIPE).communicate()[1]
opcodes = output[re.search(r'^\d+ opcodes$', output, re.M).end():re.search(r'^(?:WARNING|Usage):', output, re.M).start()].split()
output = subprocess.Popen(['csound', '--list-opcodes2'], stderr=subprocess.PIPE).communicate()[1]
all_opcodes = output[re.search(r'^\d+ opcodes$', output, re.M).end():re.search(r'^(?:WARNING|Usage):', output, re.M).start()].split()
deprecated_opcodes = [opcode for opcode in all_opcodes if opcode not in opcodes]
print '''OPCODES = set(\'''
{}
\'''.split())
DEPRECATED_OPCODES = set(\'''
{}
\'''.split())
'''.format('\n'.join(opcodes), '\n'.join(deprecated_opcodes))
"
# except for
# cggoto csound.com/docs/manual/cggoto.html
# cigoto csound.com/docs/manual/cigoto.html
Expand Down Expand Up @@ -153,9 +153,11 @@
MixerSetLevel
MixerSetLevel_i
OSCinit
OSCinitM
OSClisten
OSCraw
OSCsend
OSCsend_lo
S
STKBandedWG
STKBeeThree
Expand Down Expand Up @@ -205,6 +207,7 @@
atonex
babo
balance
balance2
bamboo
barmodel
bbcutm
Expand Down Expand Up @@ -765,6 +768,8 @@
lorenz
loscil
loscil3
loscil3phs
loscilphs
loscilx
lowpass2
lowres
Expand Down Expand Up @@ -1064,7 +1069,6 @@
pvsftw
pvsfwrite
pvsgain
pvsgendy
pvshift
pvsifd
pvsin
Expand Down Expand Up @@ -1302,7 +1306,6 @@
sockrecv
sockrecvs
socksend
socksend_k
socksends
sorta
sortd
Expand Down Expand Up @@ -1403,38 +1406,6 @@
tanh
taninv
taninv2
tb0
tb0_init
tb1
tb10
tb10_init
tb11
tb11_init
tb12
tb12_init
tb13
tb13_init
tb14
tb14_init
tb15
tb15_init
tb1_init
tb2
tb2_init
tb3
tb3_init
tb4
tb4_init
tb5
tb5_init
tb6
tb6_init
tb7
tb7_init
tb8
tb8_init
tb9
tb9_init
tbvcf
tempest
tempo
Expand Down Expand Up @@ -1621,6 +1592,10 @@
lentab
maxtab
mintab
pop
pop_f
push
push_f
scalet
sndload
soundout
Expand All @@ -1634,11 +1609,44 @@
specscal
specsum
spectrum
stack
sumtab
tabgen
tabmap
tabmap_i
tabslice
tb0
tb0_init
tb1
tb10
tb10_init
tb11
tb11_init
tb12
tb12_init
tb13
tb13_init
tb14
tb14_init
tb15
tb15_init
tb1_init
tb2
tb2_init
tb3
tb3_init
tb4
tb4_init
tb5
tb5_init
tb6
tb6_init
tb7
tb7_init
tb8
tb8_init
tb9
tb9_init
vbap16
vbap4
vbap4move
Expand Down

0 comments on commit 9f33ecb

Please sign in to comment.