Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add property while parsing, even if it has not been seen before #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tingyeah
Copy link

@tingyeah tingyeah commented Nov 3, 2022

(similar to python behavior)
(this is twong62 from gatech omscs fall 2022)
(this change is for Mac only; if you approve then I can do the same change to the other editions.)

@tingyeah
Copy link
Author

tingyeah commented Nov 3, 2022

To verify, you may try this input file:

home_animal:
    cow (vegan). [if sea_food_fish] [error]
    cat.

sea_food:
    fish. [property sea_food_fish]
    seaweed.

which should generate this output:

Test Case 1  		<error>  (follows [if])
   home_animal :  cow (vegan)


Test Case 2  		(Key = 2.1.)
   home_animal :  cat
   sea_food    :  fish


Test Case 3  		(Key = 2.2.)
   home_animal :  cat
   sea_food    :  seaweed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant