Skip to content

Commit

Permalink
(#77) CParser: get rid of TODOs for preprocessor
Browse files Browse the repository at this point in the history
We deal with it in a separate parser anyway.
  • Loading branch information
ForNeVeR committed Jul 15, 2023
1 parent 313aebf commit d75fc8f
Showing 1 changed file with 0 additions and 65 deletions.
65 changes: 0 additions & 65 deletions Cesium.Parser/CParser.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Collections.Immutable;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using Cesium.Ast;
using Yoakke.Collections.Values;
using Yoakke.SynKit.C.Syntax;
using Yoakke.SynKit.Lexer;
using Yoakke.SynKit.Parser;
Expand Down Expand Up @@ -943,69 +941,6 @@ private static ImmutableArray<Declaration> MakeDeclarationList(

// TODO[#78]: 6.9.2 External object definitions

// 6.10 Preprocessing directives

// TODO[#77]:
// preprocessing-file:
// group?
// group:
// group-part
// group group-part
// group-part:
// if-section
// control-line
// text-line
// # non-directive
// if-section:
// if-group elif-groups? else-group? endif-line
// if-group:
// # if constant-expression new-line group?
// # ifdef identifier new-line group?
// # ifndef identifier new-line group?
// elif-groups:
// elif-group
// elif-groups elif-group
// elif-group:
// # elif constant-expression new-line group?
// else-group:
// # else new-line group?
// endif-line:
// # endif new-line
// control-line:
// # include pp-tokens new-line
// # define identifier replacement-list new-line
// # define identifier lparen identifier-list? ) replacement-list new-line
// # define identifier lparen ... ) replacement-list new-line
// # define identifier lparen identifier-list , ... ) replacement-list new-line
// # undef identifier new-line
// # line pp-tokens new-line
// # error pp-tokens? new-line
// # pragma pp-tokens? new-line
// # new-line
// text-line:
// pp-tokens? new-line
// non-directive:
// pp-tokens new-line
// lparen:
// a ( character not immediately preceded by white space
// replacement-list:
// pp-tokens?
// pp-tokens:
// preprocessing-token
// pp-tokens preprocessing-token
// new-line:
// the new-line character

// TODO[#77]: 6.10.1 Conditional inclusion
// TODO[#77]: 6.10.2 Source file inclusion
// TODO[#77]: 6.10.3 Macro replacement
// TODO[#77]: 6.10.4 Line control
// TODO[#77]: 6.10.5 Error directive
// TODO[#77]: 6.10.6 Pragma directive
// TODO[#77]: 6.10.7 Null directive
// TODO[#77]: 6.10.8 Predefined macro names
// TODO[#77]: 6.10.9 Pragma operator

private ParseResult<(DeclarationSpecifiers, Declarator)> CustomParseSpecifiersAndDeclarator(int offset)
{
var declarationSpecifiersResult = CustomParseOneOrMore(parseDeclarationSpecifier, offset);
Expand Down

0 comments on commit d75fc8f

Please sign in to comment.