Skip to content

Commit

Permalink
Removed whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusB committed Dec 7, 2017
1 parent 8ef1c96 commit 6e7f72c
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions SW/BSDLparser/vhdl.g4
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ block_statement
: label_colon BLOCK ( LPAREN expression RPAREN )? ( IS )?
block_header
block_declarative_part BEGIN
block_statement_part
block_statement_part
END BLOCK ( identifier )? SEMI
;

Expand Down Expand Up @@ -725,7 +725,7 @@ formal_parameter_list

formal_part
: identifier
| identifier LPAREN explicit_range RPAREN
| identifier LPAREN explicit_range RPAREN
;

free_quantity_declaration
Expand Down Expand Up @@ -792,7 +792,7 @@ identifier_list
if_statement
: ( label_colon )? IF condition THEN
sequence_of_statements
( ELSIF condition THEN sequence_of_statements )*
( ELSIF condition THEN sequence_of_statements )*
( ELSE sequence_of_statements )?
END IF ( identifier )? SEMI
;
Expand Down Expand Up @@ -844,11 +844,11 @@ interface_file_declaration
: FILE identifier_list COLON subtype_indication
;

interface_signal_list
interface_signal_list
: interface_signal_declaration ( SEMI interface_signal_declaration )*
;

interface_port_list
interface_port_list
: interface_port_declaration ( SEMI interface_port_declaration )*
;

Expand Down Expand Up @@ -925,7 +925,7 @@ logical_operator
loop_statement
: ( label_colon )? ( iteration_scheme )?
LOOP
sequence_of_statements
sequence_of_statements
END LOOP ( identifier )? SEMI
;

Expand Down Expand Up @@ -958,14 +958,14 @@ multiplying_operator
// slice_name, and attribute_name, respectively)
// (2.2.2004, e.f.)
name
: selected_name
: selected_name
| name_part ( DOT name_part)*
;

name_part
: selected_name (name_attribute_part | name_function_call_or_indexed_part | name_slice_part)?
;

name_attribute_part
: APOSTROPHE attribute_designator ( expression ( COMMA expression )* )?
;
Expand Down Expand Up @@ -1083,7 +1083,7 @@ physical_literal

physical_type_definition
: range_constraint UNITS base_unit_declaration
( secondary_unit_declaration )*
( secondary_unit_declaration )*
END UNITS ( identifier )?
;

Expand Down Expand Up @@ -1170,7 +1170,7 @@ process_statement
( LPAREN sensitivity_list RPAREN )? ( IS )?
process_declarative_part
BEGIN
process_statement_part
process_statement_part
END ( POSTPONED )? PROCESS ( identifier )? SEMI
;

Expand Down Expand Up @@ -1356,7 +1356,7 @@ simultaneous_alternative

simultaneous_case_statement
: ( label_colon )? CASE expression USE
( simultaneous_alternative )+
( simultaneous_alternative )+
END CASE ( identifier )? SEMI
;

Expand All @@ -1371,7 +1371,7 @@ simultaneous_if_statement
simultaneous_procedural_statement
: ( label_colon )? PROCEDURAL ( IS )?
procedural_declarative_part BEGIN
procedural_statement_part
procedural_statement_part
END PROCEDURAL ( identifier )? SEMI
;

Expand Down Expand Up @@ -1405,7 +1405,7 @@ subnature_declaration
;

subnature_indication
: name ( index_constraint )?
: name ( index_constraint )?
( TOLERANCE expression ACROSS expression THROUGH )?
;

Expand Down Expand Up @@ -1546,14 +1546,14 @@ variable_declaration
;

wait_statement
: ( label_colon )? WAIT ( sensitivity_clause )?
: ( label_colon )? WAIT ( sensitivity_clause )?
( condition_clause )? ( timeout_clause )? SEMI
;

waveform
: waveform_element ( COMMA waveform_element )*
| UNAFFECTED
;
;

waveform_element
: expression ( AFTER expression )?
Expand Down Expand Up @@ -1594,39 +1594,39 @@ REAL_LITERAL
BASIC_IDENTIFIER
: LETTER ( '_' ( LETTER | DIGIT ) | LETTER | DIGIT )*
;

EXTENDED_IDENTIFIER
: '\\' ( 'a'..'z' | '0'..'9' | '&' | '\'' | '(' | ')'
| '+' | ',' | '-' | '.' | '/' | ':' | ';' | '<' | '=' | '>' | '|'
| ' ' | OTHER_SPECIAL_CHARACTER | '\\'
| '#' | '[' | ']' | '_' )+ '\\'
;

LETTER
LETTER
: 'a'..'z' | 'A'..'Z'
;

COMMENT
: '--' ( ~'\n' )*
: '--' ( ~'\n' )*
-> skip
;

TAB
: ( '\t' )+ -> skip
: ( '\t' )+ -> skip
;

SPACE
: ( ' ' )+ -> skip
: ( ' ' )+ -> skip
;

NEWLINE
: '\n' -> skip
: '\n' -> skip
;

CR
: '\r' -> skip
: '\r' -> skip
;

CHARACTER_LITERAL
: APOSTROPHE . APOSTROPHE
;
Expand Down Expand Up @@ -1679,7 +1679,7 @@ EQ : '=' ;
BAR : '|' ;
DOT : '.' ;
BACKSLASH : '\\' ;


EXPONENT
: ('E'|'e') ( '+' | '-' )? INTEGER
Expand Down

0 comments on commit 6e7f72c

Please sign in to comment.