[chuck-users] list of keywords for syntax coloring
eduard aylon
eduard.aylon at gmail.com
Fri Jul 21 10:35:41 EDT 2006
Hello Jesus,
I modified an existing VIM syntax coloring file for C/C++ programming
to fit the Chuck needs. The following snippet summarises the Chuck
keywords and assigns them a meaning e.g.: ckConditional. Maybe it
helps...
syn keyword ckStatement new goto break return continue spork
syn keyword ckConditional if else switch
syn keyword ckLoop while for do until
syn keyword ckNow now
syn keyword ckType dur time Shred UGen Event Object
syn keyword cType int float string void bool
syn keyword ckAccess public protected private
syn keyword ckOperator and bitor or xor compl bitand and_eq
or_eq xor_eq not not_eq
syn match ckCast "\s*\$\s*\(int\|float\)\s"
syn keyword ckStructure class fun
syn keyword ckUgen gain noise impulse step phasor sinosc
pulseosc triosc sqrosc sawosc halfrec fullrect zerox delayp sndbuf pan2
syn keyword ckSDK bandedWG blowbotl BlowHole Bowed
Brass Clarinet Flute Mandolin ModalBar Moog Saxofony Shakers Sitar
StifKarp VoicForm FM BeeThree FMVoices HevyMetl PercFlut Rhodey
TubeBell Wurley Delay DelayA DelayL Echo Envelope ADSR biquad Filter
OnePole TwoPole OneZero TwoZero PoleZero JCRev NRev PRCRev Chorus
Modulate PitShift SubNoise WvIn WvOut WaveLoop Blit BlitSquare BlitSaw
syn keyword ckBoolean true false
syn keyword ckShreds me machine
syn keyword ckInheritance subClass extends
syn keyword ckIO dac adc blackhole
syn keyword ckNetwork netin netout
syn keyword ckCommunication MidiIn MidiOut MidiMsg OscRecv
OscEvent OscSend HidIn HidMsg KBHit
syn keyword ckConstants pi
syn match ckOperator "\s*=\(>\|<\)\s*"
By the way, I've seen on your web-site that you live in Barcelona. Me
too! If you ever do a performance or anything with Chuck, I'd like to
know of it, if you don't mind.
Cheers,
Eduard
On Jul 21, 2006, at 4:18 PM, jesús gollonet wrote:
>
> --
> Thanks very much.
>
> In fact, i was just having a look at your excellent oscsurface to see
> how you were doing it :)
>
> i was thinking of differentiating a little more:
>
> - keywords (datatypes, reserverd words, control structures...)
> - ugens (sound related classes... adc, dac, Sitar, ...)
> - methods (freq, noteOn...)
>
> As far as i see both your program and the miniaudicle (in the
> screenshots) highlight keywords, numbers, strings and comments...
> i think it makes sense (at least from a pedagogical point of view) to
> differentiate, for example, sound generating devices from plain
> programming keywords so i needed a more exhaustive list.
>
> perhaps i'll end up with a messy rainbow... let me know what you
> think.
>
> Anyway, I'm almost done with it, just wanted to double check
>
> I'll publish it soon and we'll see.
>
> Thanks a lot, jörg
>
> Best!
> --
> jesús gollonet
> http://www.jesusgollonet.com/blog/
>
>> here it is:
>>
>> int float time dur void same
>> if else while until for break continue return switch
>> class extends public static pure this super interface implements
>> protected private
>> function fun spork const new
>> now true false maybe null NULL me pi
>> samp ms second minute hour day week
>> dac adc blackhole
>> dac adc blackhole gain noise impulse step halfrect fullrect
>> zerox delayp sndbuf
>> phasor sinosc pulseosc sqrosc triosc sawosc netout netin
>> mix2 pan2
>> StkInstrument BandedWG BlowBotl BlowHole Bowed Brass Clarinet
>> Flute Mandolin ModalBar
>> Moog Saxofony Shakers Sitar StifKarp VoicForm FM BeeThree
>> FMVoices HevyMetl PercFlut
>> Rhodey TubeBell Wurley Delay DelayA DelayL Echo Envelope ADSR
>> BiQuad Filter OnePole
>> TwoPole OneZero TwoZero PoleZero JCRev NRev PRCRev Chorus
>> Modulate PitShift SubNoise
>> WvIn WaveLoop WvOut
>>
>>
>> ----
>>
>> best
>> jörg
>>
>> Your Name wrote:
>>> Hi, chuckers.
>>>
>>> I've recently began chucking again. By now I use http://
>>> www.jedit.org as
>>> my all-purpose editor, and I've seen it as a good fit for chuck
>>> (configurable syntax highlighting, abbreviations which make typing
>>> faster, command-line integration...).
>>>
>>> I'm working on an edit mode for it to enable syntax coloring and,
>>> as I
>>> 've seen that now the miniAudicle features it, I'd like to be as
>>> consistent as I could with the way it treats keywords, ugens,
>>> constants
>>> and everything, ...
>>>
>>> So I was wondering if there is a list of keywords or something
>>> which i
>>> could take advantage of (at the moment i'm just copying from the
>>> reference and adding format up to me). I haven't found anything
>>> in the
>>> wiki...
>>>
>>> Thanks a lot.
>>>
>>
>>
>> --
>> http://joerg.piringer.net
>> http://www.transacoustic-research.com
>> http://www.iftaf.org
>> http://www.vegetableorchestra.org/
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>>
>
> --
>
>
>> here it is:
>>
>> int float time dur void same
>> if else while until for break continue return switch
>> class extends public static pure this super interface implements
>> protected private
>> function fun spork const new
>> now true false maybe null NULL me pi
>> samp ms second minute hour day week
>> dac adc blackhole
>> dac adc blackhole gain noise impulse step halfrect fullrect
>> zerox delayp sndbuf
>> phasor sinosc pulseosc sqrosc triosc sawosc netout netin
>> mix2 pan2
>> StkInstrument BandedWG BlowBotl BlowHole Bowed Brass Clarinet
>> Flute Mandolin ModalBar
>> Moog Saxofony Shakers Sitar StifKarp VoicForm FM BeeThree
>> FMVoices HevyMetl PercFlut
>> Rhodey TubeBell Wurley Delay DelayA DelayL Echo Envelope ADSR
>> BiQuad Filter OnePole
>> TwoPole OneZero TwoZero PoleZero JCRev NRev PRCRev Chorus
>> Modulate PitShift SubNoise
>> WvIn WaveLoop WvOut
>>
>>
>> ----
>>
>> best
>> jörg
>>
>> Your Name wrote:
>>> Hi, chuckers.
>>>
>>> I've recently began chucking again. By now I use http://
>>> www.jedit.org as
>>> my all-purpose editor, and I've seen it as a good fit for chuck
>>> (configurable syntax highlighting, abbreviations which make typing
>>> faster, command-line integration...).
>>>
>>> I'm working on an edit mode for it to enable syntax coloring and,
>>> as I
>>> 've seen that now the miniAudicle features it, I'd like to be as
>>> consistent as I could with the way it treats keywords, ugens,
>>> constants
>>> and everything, ...
>>>
>>> So I was wondering if there is a list of keywords or something
>>> which i
>>> could take advantage of (at the moment i'm just copying from the
>>> reference and adding format up to me). I haven't found anything
>>> in the
>>> wiki...
>>>
>>> Thanks a lot.
>>>
>>
>>
>> --
>> http://joerg.piringer.net
>> http://www.transacoustic-research.com
>> http://www.iftaf.org
>> http://www.vegetableorchestra.org/
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>>
>
> --
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
More information about the chuck-users
mailing list