Skip to content

Implementation of common statements and types#129

Merged
VincenzoArceri merged 15 commits intomasterfrom
base-statements
Oct 1, 2021
Merged

Implementation of common statements and types#129
VincenzoArceri merged 15 commits intomasterfrom
base-statements

Conversation

@lucaneg
Copy link
Member

@lucaneg lucaneg commented Sep 28, 2021

Description
This PR provides implementations for common statements and types, avoiding the need for separate (but likely equal) implementations in each frontend.

Added types:

  • BoolType
  • StringType
  • Signed integrals: Int8, Int16, Int32, Int64
  • Unsigned integrals: UInt8, UInt16, UInt32, UInt64
  • Signed non-integrals: Float32, Float64

Added statements:

  • Comparison: Equal, GreaterOrEqual, GreaterThan, LessOrEqual, LessThan, NotEqual
  • Literals: StringLiteral, TrueLiteral, FalseLiteral, Int8Literal, Int16Literal, Int32Literal, Int64Literal, NullLiteral, UInt8Literal, UInt16Literal, UInt32Literal, UInt64Literal, Float32Literal, Float64Literal
  • Logical: And, Not, Or
  • Numeric: Addition, Division, Multiplication, Negation, Remainder, Subtraction
  • String: Concat, Contains, EndsWith, Equals, IndexOf, Length, Replace, StartsWith, Substring

Implemented features
Closes #113

@lucaneg lucaneg added 🎆 type:feature New feature or request 🏗 resolution:wip Incomplete work - do not review yet labels Sep 28, 2021
@lucaneg lucaneg added this to the 0.1b2 milestone Sep 28, 2021
@lucaneg lucaneg self-assigned this Sep 28, 2021
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@lucaneg lucaneg removed the 🏗 resolution:wip Incomplete work - do not review yet label Sep 29, 2021
@github-actions
Copy link

Cron Test Results

10 files  10 suites   4s ⏱️
22 tests 22 ✔️ 0 💤 0 ❌

Results for commit 703e715.

@github-actions
Copy link

github-actions bot commented Oct 1, 2021

Unit Test Results

  33 files    33 suites   12s ⏱️
204 tests 204 ✔️ 0 💤 0 ❌

Results for commit b54cfbb.

@github-actions

This comment has been minimized.

@VincenzoArceri VincenzoArceri merged commit 6fb519d into master Oct 1, 2021
@VincenzoArceri VincenzoArceri deleted the base-statements branch October 1, 2021 14:15
@github-actions
Copy link

github-actions bot commented Oct 1, 2021

All Test Results (unit + cron)

  43 files  ±0    43 suites  ±0   13s ⏱️ -1s
226 tests ±0  226 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 6fb519d. ± Comparison against base commit cfa9fb0.

@lucaneg lucaneg added the 🏛 scope:program-structure Work regarding the program structure label Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏛 scope:program-structure Work regarding the program structure 🎆 type:feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Predefined set of statements and types

2 participants