fork
This commit is contained in:
24
langs/arduino/arduino.txt
Normal file
24
langs/arduino/arduino.txt
Normal file
@ -0,0 +1,24 @@
|
||||
### ARDUINO LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME Arduino
|
||||
VERSION 1.0.0
|
||||
|
||||
COMMENT (?default)
|
||||
PREPROCESSOR (?default)
|
||||
STRING (?default)
|
||||
|
||||
KEYWORD \b(?alt:keywords.txt)\b
|
||||
|
||||
STATEMENT \b(?alt:statement.txt)\b
|
||||
RESERVED (?default)|\b(?alt:reserved.txt)\b|\b(?alt:reserved2.txt)\b
|
||||
TYPE \b(?alt:types.txt)\b
|
||||
MODIFIER (?default)|\b(?alt:modifier.txt)\b
|
||||
|
||||
ENTITY \b(?alt:enity.txt)\b
|
||||
VARIABLE (?default)
|
||||
CONSTANT ((?-i)\b[A-Z_]*\b(?i))|((?default))
|
||||
IDENTIFIER (?default)
|
||||
OPERATOR (?default)
|
||||
SYMBOL (?default)
|
2
langs/arduino/enity.txt
Normal file
2
langs/arduino/enity.txt
Normal file
@ -0,0 +1,2 @@
|
||||
println
|
||||
print
|
7
langs/arduino/keywords.txt
Normal file
7
langs/arduino/keywords.txt
Normal file
@ -0,0 +1,7 @@
|
||||
INPUT
|
||||
INPUT_PULLUP
|
||||
OUTPUT
|
||||
LOW
|
||||
HIGH
|
||||
false
|
||||
true
|
36
langs/arduino/modifier.txt
Normal file
36
langs/arduino/modifier.txt
Normal file
@ -0,0 +1,36 @@
|
||||
transparent_union
|
||||
__extension__
|
||||
__attribute__
|
||||
__volatile__
|
||||
__complex__
|
||||
__inline__
|
||||
__restrict
|
||||
__signed__
|
||||
deprecated
|
||||
__const__
|
||||
__label__
|
||||
extension
|
||||
attribute
|
||||
may_alias
|
||||
volatile
|
||||
restrict
|
||||
register
|
||||
volatile
|
||||
__imag__
|
||||
__real__
|
||||
restrict
|
||||
nocommon
|
||||
complex
|
||||
aligned
|
||||
section
|
||||
cleanup
|
||||
inline
|
||||
signed
|
||||
extern
|
||||
packed
|
||||
unused
|
||||
const
|
||||
label
|
||||
imag
|
||||
real
|
||||
mode
|
52
langs/arduino/reserved.txt
Normal file
52
langs/arduino/reserved.txt
Normal file
@ -0,0 +1,52 @@
|
||||
__builtin_types_compatible_p
|
||||
__builtin_return_address
|
||||
constructor, destructor
|
||||
__builtin_frame_address
|
||||
no_instrument_function
|
||||
__builtin_choose_expr
|
||||
__builtin_constant_p
|
||||
__builtin_apply_args
|
||||
__builtin_prefetch
|
||||
regparm, stkparm
|
||||
__builtin_expect
|
||||
__builtin_return
|
||||
__builtin_apply
|
||||
always_inline
|
||||
__alignof__
|
||||
format_arg
|
||||
deprecated
|
||||
interrupt
|
||||
__FILE__
|
||||
__LINE__
|
||||
__func__
|
||||
noreturn
|
||||
noinline
|
||||
__asm__
|
||||
__align
|
||||
__align
|
||||
fortran
|
||||
alignof
|
||||
section
|
||||
nonnull
|
||||
nothrow
|
||||
sprintf
|
||||
sizeof
|
||||
pascal
|
||||
typeof
|
||||
format
|
||||
unused
|
||||
malloc
|
||||
printf
|
||||
malloc
|
||||
__asm
|
||||
__asm
|
||||
cdecl
|
||||
const
|
||||
alias
|
||||
auto
|
||||
near
|
||||
huge
|
||||
pure
|
||||
used
|
||||
asm
|
||||
far
|
46
langs/arduino/reserved2.txt
Normal file
46
langs/arduino/reserved2.txt
Normal file
@ -0,0 +1,46 @@
|
||||
analogWriteResolution
|
||||
analogReadResolution
|
||||
delayMicroseconds
|
||||
analogReference
|
||||
attachInterrupt
|
||||
detachInterrupt
|
||||
digitalWrite
|
||||
noInterrupts
|
||||
digitalRead
|
||||
analogWrite
|
||||
analogRead
|
||||
randomSeed
|
||||
interrupts
|
||||
constrain
|
||||
shiftOut
|
||||
highByte
|
||||
bitWrite
|
||||
bitClear
|
||||
pinMode
|
||||
shiftIn
|
||||
pulseIn
|
||||
lowByte
|
||||
bitRead
|
||||
noTone
|
||||
millis
|
||||
micros
|
||||
random
|
||||
bitSet
|
||||
delay
|
||||
float
|
||||
tone
|
||||
sqrt
|
||||
char
|
||||
byte
|
||||
word
|
||||
long
|
||||
min
|
||||
max
|
||||
abs
|
||||
map
|
||||
pow
|
||||
sin
|
||||
cos
|
||||
tan
|
||||
int
|
||||
bit
|
53
langs/arduino/statement.txt
Normal file
53
langs/arduino/statement.txt
Normal file
@ -0,0 +1,53 @@
|
||||
setup
|
||||
loop
|
||||
sizeof
|
||||
if
|
||||
else
|
||||
for
|
||||
switch
|
||||
case
|
||||
while
|
||||
do
|
||||
break
|
||||
continue
|
||||
return
|
||||
goto
|
||||
pinMode
|
||||
digitalWrite
|
||||
digitalRead
|
||||
analogReference
|
||||
analogRead
|
||||
analogWrite
|
||||
tone
|
||||
noTone
|
||||
shiftOut
|
||||
shiftIn
|
||||
pulseInO
|
||||
millis
|
||||
micros
|
||||
delay
|
||||
delayMicroseconds
|
||||
min
|
||||
max
|
||||
abs
|
||||
constrain
|
||||
map
|
||||
pow
|
||||
sqrt
|
||||
sin
|
||||
cos
|
||||
tan
|
||||
randomSeed
|
||||
random
|
||||
lowByte
|
||||
highByte
|
||||
bitRead
|
||||
bitWrite
|
||||
bitSet
|
||||
bitClear
|
||||
bit
|
||||
attachInterrupt
|
||||
detachInterrupt
|
||||
interrupts
|
||||
noInterrupts
|
||||
serial
|
13
langs/arduino/types.txt
Normal file
13
langs/arduino/types.txt
Normal file
@ -0,0 +1,13 @@
|
||||
void
|
||||
boolean
|
||||
char
|
||||
unsigned
|
||||
byte
|
||||
int
|
||||
word
|
||||
long
|
||||
float
|
||||
double
|
||||
string
|
||||
String
|
||||
array
|
Reference in New Issue
Block a user