Fixed generate-keywords script

This commit is contained in:
Armando Rivera 2013-11-15 23:05:09 -05:00
parent 31d974aa67
commit bedc0b9dcc
3 changed files with 8 additions and 7 deletions

View File

@ -30,8 +30,9 @@ ENDSELECT
ENDSUB
ENUM
EXIT
FALSE FORMAT$
FALSE
FOR
FORMAT$
FUNCTION
IF
INCR

View File

@ -16,4 +16,4 @@ SAVEFILE (CSTRING src, CSTRING fname)
SPLITPATH$ (CSTRING FPATH, INT mask)
TRIM$ (CSTRING s)
UCASE$ (CSTRING str)
VAL (CSTRING str)
VAL (CSTRING str)

View File

@ -1,13 +1,13 @@
#!/bin/sh
# KEYWORDS
KEYWORDS=$(ack '#define (\w+.|\w+)' header.inc --output='$1')
KEYWORDS+=$(ack '^FUNCTION \w+ (\w+.|\w+)' runtime.inc --output='$1')
KEYWORDS+='\n'$(ack '^SUB (\w+)' runtime.inc --output='$1')
KEYWORDS=$(ack '#define (\w+.|\w+)' header.inc --output='$1')'\n'
KEYWORDS+=$(ack '^FUNCTION \w+ (\w+.|\w+)' runtime.inc --output='$1')'\n'
KEYWORDS+=$(ack '^SUB (\w+)' runtime.inc --output='$1')
# FUNCTION/SUB PROTOTYPES
PROTO=$(ack '^FUNCTION \w+ (.+\))' runtime.inc --output='$1')' '
PROTO+='\n'$(ack '^SUB (.+\))' runtime.inc --output='$1')
PROTO=$(ack '^FUNCTION \w+ (.+\))' runtime.inc --output='$1')'\n'
PROTO+=$(ack '^SUB (.+\))' runtime.inc --output='$1')
#
# SAVE SORTED KEYWORDS/PROTOTYPES