OSDN Git Service

0aeee9551ac2495952e7747504bb89ab21e597b5
[fast-forth/master.git] / config / scite / AS_MSP430 / forth.properties
1 # Define SciTE settings for Forth files
2
3 # These patterns conflict with fortran.properties and nncrontab.properties
4 # so disable these other properties files if you want to use forth.
5 file.patterns.forth=*.f;*.4th
6
7 # add '*.tab;*.spf;' to 'source.files' variable in 'SciTEGlobal.properties'
8 # if you want to include these file patterns into default source file list
9
10 lexer.$(file.patterns.forth)=forth
11
12 *language.forth=Forth|forth||
13
14
15 filter.forth=Forth files (4th f)|$(file.patterns.forth)|
16
17 *filter.forth=$(filter.forth)
18
19
20 word.characters.$(file.patterns.forth)=$(chars.alpha)$(chars.numeric)_
21
22 comment.block.forth=\
23 #comment.block.at.line.start.forth=0
24 comment.stream.start.forth=
25 comment.stream.end.forth=
26 comment.box.start.forth=
27 comment.box.middle.forth=
28 comment.box.end.forth=
29 block.start.forth=\
30 block.end.forth=\
31 # Forth styles
32
33 # control keywords Forth
34 keywords.$(file.patterns.forth)=\
35 again begin case do i j else endcase endof if loop +loop leave unloop of repeat then until  while ?do \
36 <  >  >= = <> 0<> 0= 0< <0 0>= u< u>= s< s>= jmp goto ?goto bw1 bw2 bw3 fw1 fw2 fw3
37
38 # Keywords
39 keywords2.$(file.patterns.forth)=\
40 dup ?dup drop rot swap over @ ! 2@ 2! 2dup 2drop 2swap 2over nip r@ >r r> 2r@ 2>r 2r> \
41      sp@ sp! @ ! c@ c! s>d um/mod um* m* * fm/mod sm/rem rshift lshift invert 1+ 1- negate \
42     (cr) (EMIT) (accept) (warm) is lit warm depth /mod mod \
43     space spaces bl word char fill key? key  abort */ 2* 2/ /mod cell+ cells char+ \
44     chars move abs hex decimal hold <# # #s #> sign or \
45     count type . u. dump (.") >number ' exit recurse here allot , \
46     c, branch 0branch  ?branch align aligned create does> \
47     variable constant defer definitions forth forget only also previous literal \
48     source evaluate word interpret quit >body execute find state base \
49     words  accept emit cr type echo noecho min max true false \
50     char [char] postpone ['] rst_here rst_state wipe pwr_here  pwr_state \
51     assembler close pad caps_on caps_off
52
53 # defwords
54 keywords3.$(file.patterns.forth)=\
55 code endcode  :  ;  immediate ;noname codennm \
56 lo2hi hi2lo colon asm endasm \
57 [if] [else] [then] [undefined] [defined]
58
59 # MSP430 assembly words & MSP430_instructions
60 keywords4.$(file.patterns.forth)=\
61 adc adc.b adc.w add add.b add.w addc addc.b addc.w and and.b and.w \
62     bic bic.b bic.w bis bis.b bis.w bit bit.b bit.w br branch call clrc clrn clrz dint eint \
63     clr clr.b clr.w cmp cmp.b cmp.w dadc dadc.b dadc.w dadd dadd.b dadd.w dec dec.b dec.w decd decd.b decd.w \
64     inc inc.b inc.w incd incd.b incd.w inv inv.b inv.w mov mov.b mov.w pop pop.b pop.w push push.b push.w \
65     jc jhs je jeq jz jge jl jmp jn jnc jlo jne jnz nop nop2 nop3 nop4 nop5 nop6 nop7 ret reti setc setn setz swpb sxt \
66     rla rla.b rla.w rlc rlc.b rlc.w rra rra.b rra.w rrc rrc.b rrc.w sbc sbc.b sbc.w sub sub.b sub.w \
67     subc subc.b subc.w sbb sbb.b sbb.w tst tst.b tst.w xor xor.b xor.w \
68     pushm popm rlam rram rrcm rrum \
69
70
71 #keywords5.$(file.patterns.forth)= \
72 #u v w x y ip tos pc rsp psp
73
74 # string words
75 keywords6.$(file.patterns.forth)=\
76 s"  ." c" abort" ( .(  read" write" del" load"
77
78
79
80
81
82 # Default
83 style.forth.32=$(font.base)
84
85 # whitespace (SCE_FORTH_DEFAULT)
86 style.forth.0=$(font.base)
87
88 # Comment (SCE_FORTH_COMMENT)
89 style.forth.1=fore:#00FF00,$(font.comment)
90
91 # ( ) comment (SCE_FORTH_COMMENT_ML)
92 style.forth.2=fore:#00FF00,$(font.comment)
93
94 # ML comment (SCE_FORTH_IDENTIFIER)
95 style.forth.3=fore:#FFFFFF
96
97 # control (keyword_FORTH_CONTROL)
98 style.forth.4=fore:#0000FF
99
100 # Keywords (keyword2_SCE_FORTH_KEYWORD)
101 style.forth.5=fore:#FF00FF,$(font.base)
102
103 # defwords (keyword3_SCE_FORTH_DEFWORD)
104 style.forth.6=fore:#FFFF00,$(font.base)
105
106 # preword1 (keyword4_SCE_msp430_assembly)
107 style.forth.7=fore:#FF0000,$(font.base)
108
109 # preword2 (keyword5_SCE_msp430_registers)
110 style.forth.8=fore:#FFFF00,$(font.base)
111
112 # number (SCE_FORTH_NUMBER)
113 style.forth.9=fore:#00BFBF,$(font.base)
114
115 # Double quoted string (SCE_FORTH_STRING)
116 style.forth.10=fore:#00FFFF,$(font.base)
117
118 # locale
119 style.forth.11=fore:#0077FF,$(font.base)
120
121 #command.compile.*.f=spf.cmd $(FileNameExt)
122
123 if PLAT_WIN
124     command.name.0.*.f=preprocess file.f with 1:[target].pat then download file.4TH
125     command.0.*.f=*\config\msp430\SendSource.bat $(FileDir)\$(FileName).f $(1) NOECHO
126     
127     command.name.1.*.f=preprocess file.f with 1:[target].pat then download file.4TH with ECHO
128     command.1.*.f=*\config\msp430\SendSource.bat $(FileDir)\$(FileName).f $(1) ECHO
129     
130     command.name.2.*.f=preprocess file.f with 1:[target].pat then download file.4th HALFDUPLEX
131     command.2.*.f=*\config\msp430\SendSource.bat $(FileDir)/$(FileName).f $(1) HALF
132     
133     command.name.3.*.f=preprocess file.f with 1:[target].pat then download file.4TH to target SD_CARD
134     command.3.*.f=*\config\msp430\CopyTo_SD_Card.bat $(FileDir)\$(FileName).f $(1)
135     
136     command.name.4.*.f=preprocess file.f with 1:[target].pat to LAST.4th (for debug)
137     command.4.*.f=*\config\msp430\Preprocess.bat $(FileDir)\$(FileName).f $(1)
138     
139     command.name.5.*.f=preprocess file.f with for target CurrentSelection then download
140     command.5.*.f=\config\msp430\SendSource.bat $(FileDir)\$(FileName).f  $(CurrentSelection) NOECHO
141     
142     command.name.6.*.f=preprocess file.f with for target CurrentSelection then download with ECHO
143     command.6.*.f=\config\msp430\SendSource.bat $(FileDir)\$(FileName).f  $(CurrentSelection) ECHO
144     
145     command.name.7.*.f=preprocess file.f with for target CurrentSelection then download HALFDUPLEX
146     command.7.*.f=\config\msp430\SendSource.bat $(FileDir)\$(FileName).f  $(CurrentSelection) HALF
147     
148     command.name.8.*.f=preprocess file.f with for target CurrentSelection then download file.4th to target SD_CARD
149     command.8.*.f=\config\msp430\CopyTo_SD_Card.bat $(FileDir)\$(FileName).f  $(CurrentSelection)
150     
151     command.name.9.*.f=preprocess file.f with for target CurrentSelection to LAST.4th (for debug)
152     command.9.*.f=\config\msp430\Preprocess.bat $(FileDir)\$(FileName).f  $(CurrentSelection)
153     
154     command.name.10.*.f=convert FORTH registers to TI's ones
155     command.10.*.f=\prog\gema\gema -line -t -f \config\gema\FastForthREGtoTI.pat $(FileNameExt) $(FileNameExt)
156     
157     command.name.11.*.f=convert TI registers to FORTH's ones
158     command.11.*.f=\prog\gema\gema -line -t -f \config\gema\TiREGtoFastForth.pat $(FileNameExt) $(FileNameExt)
159     
160     command.name.0.*.4th=send file.4th to target
161     command.0.*.4th=\config\msp430\SendSource.bat $(FileDir)\$(FileName).4TH NOECHO
162     
163     command.name.1.*.4th=send file.4th to target with ECHO
164     command.1.*.4th=\config\msp430\SendSource.bat $(FileDir)\$(FileName).4TH ECHO
165     
166     command.name.2.*.4th=send file.4th to target with HALFDUPLEX
167     command.2.*.4th=\config\msp430\SendSource.bat $(FileDir)/$(FileName).4th HALF
168     
169     command.name.3.*.4th=send file.4th to target SD_CARD
170     command.3.*.4th=\config\msp430\CopyTo_SD_Card.bat $(FileDir)\$(FileName).4TH
171     
172     command.name.4.*.4th=convert TI registers to FORTH's ones
173     command.4.*.4th=\prog\gema\gema -line -t -f \config\gema\TiREGtoFastForth.pat $(FileNameExt) $(FileNameExt)
174     
175     command.name.5.*.4th=convert FORTH registers to TI's ones
176     command.5.*.4th=\prog\gema\gema -line -t -f \config\gema\FastForthREGtoTI.pat $(FileNameExt) $(FileNameExt)
177
178 if PLAT_GTK
179     # variable $FF = /media/jeanmi/DATA/CloudStation is defined in my ~.profile 
180     command.name.0.*.f=preprocess file.f with 1:[target].pat then download file.4th without ECHO
181     command.0.*.f=*/media/jeanmi/DATA/CloudStation/config/msp430/SendSource $(FileDir)/$(FileName) $(1) NOECHO
182     #command.0.*.f=*$FF/config/msp430/SendSource $(FileDir)/$(FileName) $(1) NOECHO
183     
184     command.name.1.*.f=preprocess file.f with 1:[target].pat then download file.4th with ECHO
185     command.1.*.f=*/media/jeanmi/DATA/CloudStation/config/msp430/SendSource $(FileDir)/$(FileName) $(1) ECHO
186     #command.1.*.f=*$FF/config/msp430/SendSource $(FileDir)/$(FileName) $(1) ECHO
187     
188     command.name.2.*.f=preprocess file.f with 1:[target].pat then download file.4th HALFDUPLEX
189     command.2.*.f=*/media/jeanmi/DATA/CloudStation/config/msp430/SendSource $(FileDir)/$(FileName) $(1) HALF
190     #command.2.*.f=*/media/jeanmi/DATA/CloudStation/config/msp430/SendSource $(FileDir)/$(FileName) $(1) HALF
191     
192     command.name.3.*.f=preprocess file.f with 1:[target].pat then download file.4th to target SD_CARD
193     command.3.*.f=*/media/jeanmi/DATA/CloudStation/config/msp430/CopyTo_SD_Card $(FileDir)/$(FileName) $(1)
194     #command.3.*.f=*$FF/config/msp430/CopyTo_SD_Card $(FileDir)/$(FileName) $(1)
195     
196     command.name.4.*.f=preprocess file.f with 1:[target].pat to LAST.4th (for debug)
197     command.4.*.f=*/media/jeanmi/DATA/CloudStation/config/msp430/Preprocess $(FileDir)/$(FileName) $(1)
198     #command.4.*.f=*$FF/config/msp430/Preprocess $(FileDir)/$(FileName) $(1)
199     
200     command.name.5.*.f=preprocess file.f with for target CurrentSelection then download
201     command.5.*.f=/media/jeanmi/DATA/CloudStation/config/msp430/SendSource $(FileDir)/$(FileName) $(CurrentSelection)
202     #command.5.*.f=$FF/config/msp430/SendSource $(FileDir)/$(FileName) $(CurrentSelection)
203     
204     command.name.6.*.f=preprocess file.f with for target CurrentSelection then download with ECHO
205     command.6.*.f=/media/jeanmi/DATA/CloudStation/config/msp430/SendSource $(FileDir)/$(FileName) $(CurrentSelection) ECHO
206     #command.6.*.f=$FF/config/msp430/SendSource $(FileDir)/$(FileName) $(CurrentSelection) ECHO
207     
208     command.name.7.*.f=preprocess file.f with for target CurrentSelection then download file.4th to target SD_CARD
209     command.7.*.f=/media/jeanmi/DATA/CloudStation/config/msp430/CopyTo_SD_Card $(FileDir)/$(FileName).f  $(CurrentSelection)
210     #command.7.*.f=$FF/config/msp430/CopyTo_SD_Card $(FileDir)/$(FileName).f  $(CurrentSelection)
211     
212     command.name.8.*.f=preprocess file.f with for target CurrentSelection to LAST.4th (for debug)
213     command.8.*.f=/media/jeanmi/DATA/CloudStation/config/msp430/Preprocess $(FileDir)/$(FileName)  $(CurrentSelection)
214     #command.8.*.f=$FF/config/msp430/Preprocess $(FileDir)/$(FileName)  $(CurrentSelection)
215     
216     command.name.9.*.f=convert FORTH registers to TI's ones
217     command.9.*.f=gema -line -t -f /media/jeanmi/DATA/CloudStation/config/gema/FastForthREGtoTI.pat $(FileNameExt) $(FileNameExt)
218     #command.9.*.f=gema -line -t -f $FF/config/gema/FastForthREGtoTI.pat $(FileNameExt) $(FileNameExt)
219     
220     command.name.10.*.f=convert TI registers to FORTH's ones
221     command.10.*.f=gema -line -t -f /media/jeanmi/DATA/CloudStation/config/gema/tiREGtoFastForth.pat $(FileNameExt) $(FileNameExt)
222     #command.10.*.f=gema -line -t -f $FF/config/gema/tiREGtoFastForth.pat $(FileNameExt) $(FileNameExt)
223     
224     command.name.0.*.4th=send file.4th to target without ECHO
225     command.0.*.4th=/media/jeanmi/DATA/CloudStation/config/msp430/SendSource $(FileDir)/$(FileName).4th NOECHO
226     #command.0.*.4th=$FF/config/msp430/SendSource $(FileDir)/$(FileName).4th NOECHO
227     
228     command.name.1.*.4th=send file.4th to target with ECHO
229     command.1.*.4th=/media/jeanmi/DATA/CloudStation/config/msp430/SendSource $(FileDir)/$(FileName).4th ECHO
230     #command.1.*.4th=$FF/config/msp430/SendSource $(FileDir)/$(FileName).4th ECHO
231     
232     command.name.2.*.4th=send file.4th to target with HALFDUPLEX
233     command.2.*.4th=/media/jeanmi/DATA/CloudStation/config/msp430/SendSource $(FileDir)/$(FileName).4th HALF
234     #command.2.*.4th=$FF/config/msp430/SendSource $(FileDir)/$(FileName).4th HALF
235     
236     command.name.3.*.4th=send file.4th to target SD_CARD
237     command.3.*.4th=$/media/jeanmi/DATA/CloudStation/config/msp430/CopyTo_SD_Card $(FileDir)/$(FileName).4th
238     #command.3.*.4th=$FF/config/msp430/CopyTo_SD_Card $(FileDir)/$(FileName).4th
239     
240     command.name.4.*.4th=convert TI registers to FORTH's ones
241     command.4.*.4th=gema -line -t -f /media/jeanmi/DATA/CloudStation/config/gema/TiREGtoFastForth.pat $(FileNameExt) $(FileNameExt)
242     #command.4.*.4th=gema -line -t -f $FF/config/gema/TiREGtoFastForth.pat $(FileNameExt) $(FileNameExt)
243     
244     command.name.5.*.4th=convert FORTH registers to TI's ones
245     command.5.*.4th=gema -line -t -f /media/jeanmi/DATA/CloudStation/config/gema/FastForthREGtoTI.pat $(FileNameExt) $(FileNameExt)
246     #command.5.*.4th=gema -line -t -f $FF/config/gema/FastForthREGtoTI.pat $(FileNameExt) $(FileNameExt)
247
248