Skip to content

Commit

Permalink
Added additional parse functionality. #12
Browse files Browse the repository at this point in the history
  • Loading branch information
GSIO01 committed Aug 17, 2014
1 parent cce5308 commit 9d3b2fa
Show file tree
Hide file tree
Showing 4 changed files with 355 additions and 4 deletions.
3 changes: 3 additions & 0 deletions code/game/bg_lex.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ typedef enum {
LSYM_WCONF_VARIATION,
LSYM_WCONF_RADIUS,
LSYM_WCONF_SIZE,
LSYM_WCONF_TIME,
LSYM_WCONF_VELOCITY,
LSYM_WCONF_SPLASH,
LSYM_POINT,

LSYM_UNKNOWN
Expand Down
12 changes: 12 additions & 0 deletions code/game/bg_lex.lex
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,18 @@ bgLexSymbol bgLex_textToSymbol(char* text) {
return LSYM_WCONF_SIZE;
}

if(strcmp("time", text) == 0) {
return LSYM_WCONF_TIME;
}

if(strcmp("velocity", text) == 0) {
return LSYM_WCONF_VELOCITY;
}

if(strcmp("splash", text) == 0) {
return LSYM_WCONF_SPLASH;
}

return LSYM_UNKNOWN;
}

Expand Down
12 changes: 12 additions & 0 deletions code/game/bg_lex.yy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3534,6 +3534,18 @@ bgLexSymbol bgLex_textToSymbol(char* text) {
return LSYM_WCONF_SIZE;
}

if(strcmp("time", text) == 0) {
return LSYM_WCONF_TIME;
}

if(strcmp("velocity", text) == 0) {
return LSYM_WCONF_VELOCITY;
}

if(strcmp("splash", text) == 0) {
return LSYM_WCONF_SPLASH;
}

return LSYM_UNKNOWN;
}

Expand Down
Loading

0 comments on commit 9d3b2fa

Please sign in to comment.