mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-04-15 08:00:27 +00:00
as: token: add support for [ and ] tokens
This commit is contained in:
@@ -88,9 +88,11 @@ format(Token) ->
|
||||
?T_COLON -> ":";
|
||||
?T_COMMA -> ",";
|
||||
?T_DOT -> ".";
|
||||
?T_LBRACK -> "[";
|
||||
?T_LPAREN -> "(";
|
||||
?T_MINUS -> "-";
|
||||
?T_PLUS -> "+";
|
||||
?T_RBRACK -> "]";
|
||||
?T_RPAREN -> ")";
|
||||
?T_NEWLINE -> "<newline>";
|
||||
?T_EOF -> "<eof>"
|
||||
|
||||
@@ -62,9 +62,11 @@
|
||||
-define(T_COLON, 'T_COLON'). % :
|
||||
-define(T_COMMA, 'T_COMMA'). % ,
|
||||
-define(T_DOT, 'T_DOT'). % .
|
||||
-define(T_LBRACK, 'T_LBRACK'). % [
|
||||
-define(T_LPAREN, 'T_LPAREN'). % (
|
||||
-define(T_MINUS, 'T_MINUS'). % -
|
||||
-define(T_PLUS, 'T_PLUS'). % +
|
||||
-define(T_RBRACK, 'T_RBRACK'). % ]
|
||||
-define(T_RPAREN, 'T_RPAREN'). % )
|
||||
|
||||
%% synthetic symbols
|
||||
@@ -101,9 +103,11 @@
|
||||
| ?T_COLON
|
||||
| ?T_COMMA
|
||||
| ?T_DOT
|
||||
| ?T_LBRACK
|
||||
| ?T_LPAREN
|
||||
| ?T_MINUS
|
||||
| ?T_PLUS
|
||||
| ?T_RBRACK
|
||||
| ?T_RPAREN
|
||||
| ?T_NEWLINE
|
||||
| ?T_EOF
|
||||
|
||||
Reference in New Issue
Block a user