Add TOKEN enum entries for EOF, decode error, drop, and none

This commit is contained in:
Josh Holtrop 2021-07-05 20:11:55 -04:00
parent 91d6ee25ea
commit 24d12be3b9
2 changed files with 7 additions and 0 deletions

View File

@ -78,6 +78,10 @@ class <%= classname %>
TOKEN_<%= token.c_name %> = <%= index %>, TOKEN_<%= token.c_name %> = <%= index %>,
<% end %> <% end %>
<% end %> <% end %>
TOKEN_EOF = <%= TOKEN_EOF %>,
TOKEN_DECODE_ERROR = <%= TOKEN_DECODE_ERROR %>,
TOKEN_DROP = <%= TOKEN_DROP %>,
TOKEN_NONE = <%= TOKEN_NONE %>,
} }
static immutable string TokenNames[] = [ static immutable string TokenNames[] = [

View File

@ -17,6 +17,9 @@ require_relative "imbecile/version"
module Imbecile module Imbecile
# EOF.
TOKEN_EOF = 0xFFFFFFFC
# Decoding error. # Decoding error.
TOKEN_DECODE_ERROR = 0xFFFFFFFD TOKEN_DECODE_ERROR = 0xFFFFFFFD