Title: [ENHANCEMENT] Change AST nodes to be dataclasses · Issue #38 · I-Language-Development/I-language-python · GitHub
Open Graph Title: [ENHANCEMENT] Change AST nodes to be dataclasses · Issue #38 · I-Language-Development/I-language-python
X Title: [ENHANCEMENT] Change AST nodes to be dataclasses · Issue #38 · I-Language-Development/I-language-python
Description: Change the AST module to use nodes of the following scheme: @dataclass class Node: name: str type: str # One of the possible types, sub classes such as VariableNode can use base types here value: Any below: Optional[List["Node"]] = None ...
Open Graph Description: Change the AST module to use nodes of the following scheme: @dataclass class Node: name: str type: str # One of the possible types, sub classes such as VariableNode can use base types here value: A...
X Description: Change the AST module to use nodes of the following scheme: @dataclass class Node: name: str type: str # One of the possible types, sub classes such as VariableNode can use base types here value: A...
Opengraph URL: https://github.com/I-Language-Development/I-language-python/issues/38
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENHANCEMENT] Change AST nodes to be dataclasses","articleBody":"Change the AST module to use nodes of the following scheme:\r\n```python\r\n@dataclass\r\nclass Node:\r\n name: str\r\n type: str # One of the possible types, sub classes such as VariableNode can use base types here\r\n value: Any\r\n below: Optional[List[\"Node\"]] = None # Requires from __future__ import annotations\r\n arguments: Optional[List[str]] = None # Subject to of change, arguments or annotations for the node\r\n```\r\nSub classes will inherit from them but use a custom `__init__` method. The nodes of a program are stored in a list containing one item, the program node (contains args passed from the shell and the name of the file).\r\n\r\n**Todo:**\r\n- [x] Change existing nodes\r\n- [ ] Add more nodes\r\n- [ ] Rewrite parser to use new AST system","author":{"url":"https://github.com/ElBe-Plaq","@type":"Person","name":"ElBe-Plaq"},"datePublished":"2023-04-15T08:03:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/38/I-language-python/issues/38"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:488a77bc-2e85-21ad-bbce-66594513552e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF44:2FBB13:757F83:9805AA:698E813B |
| html-safe-nonce | bce99126a1b6f18499242132c5e09741c3288149278568eb91c2670284704a38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjQ0OjJGQkIxMzo3NTdGODM6OTgwNUFBOjY5OEU4MTNCIiwidmlzaXRvcl9pZCI6IjQzMTE1NTc3NDI4MjMxMTMwMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ccbebf11cc4d9a4301602c575e663f6971354b077e78963b347931f17ec075d1 |
| hovercard-subject-tag | issue:1669226350 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/I-Language-Development/I-language-python/38/issue_layout |
| twitter:image | https://opengraph.githubassets.com/15e379cfbb64e25bdfe9597cf011749057bf99afa4ed6601d465451107fab825/I-Language-Development/I-language-python/issues/38 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/15e379cfbb64e25bdfe9597cf011749057bf99afa4ed6601d465451107fab825/I-Language-Development/I-language-python/issues/38 |
| og:image:alt | Change the AST module to use nodes of the following scheme: @dataclass class Node: name: str type: str # One of the possible types, sub classes such as VariableNode can use base types here value: A... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ElBe-Plaq |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/I-Language-Development/I-language-python git https://github.com/I-Language-Development/I-language-python.git |
| octolytics-dimension-user_id | 128324937 |
| octolytics-dimension-user_login | I-Language-Development |
| octolytics-dimension-repository_id | 615825080 |
| octolytics-dimension-repository_nwo | I-Language-Development/I-language-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 615825080 |
| octolytics-dimension-repository_network_root_nwo | I-Language-Development/I-language-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f7a12861f7011eecb14bcc4388a767d829a52dfc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width