This is an archive of the discontinued LLVM Phabricator instance.

[SyntaxTree] Add support for `LiteralExpression`
ClosedPublic

Authored by eduucaldas on Aug 4 2020, 1:51 AM.

Details

Summary

We use inheritance to model the grammar's disjunction rule:

literal:
  integer-literal
  character-literal
  floating-point-literal
  string-literal
  boolean-literal
  pointer-literal
  user-defined-literal

Diff Detail

Event Timeline

eduucaldas created this revision.Aug 4 2020, 1:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2020, 1:51 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
eduucaldas requested review of this revision.Aug 4 2020, 1:51 AM
eduucaldas edited the summary of this revision. (Show Details)Aug 4 2020, 1:52 AM
eduucaldas added a reviewer: gribozavr2.
gribozavr2 accepted this revision.Aug 4 2020, 4:44 AM
This revision is now accepted and ready to land.Aug 4 2020, 4:44 AM
This revision was landed with ongoing or failed builds.Aug 4 2020, 7:05 AM
This revision was automatically updated to reflect the committed changes.